tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

cross-realm.js (486B)


      1 // Copyright (C) 2016 the V8 project authors. All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 /*---
      4 esid: sec-symbol.hasinstance
      5 description: Value shared by all realms
      6 info: |
      7  Unless otherwise specified, well-known symbols values are shared by all
      8  realms.
      9 features: [cross-realm, Symbol.hasInstance]
     10 ---*/
     11 
     12 var OSymbol = $262.createRealm().global.Symbol;
     13 
     14 assert.sameValue(Symbol.hasInstance, OSymbol.hasInstance);
     15 
     16 reportCompare(0, 0);