Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/Symbol/toPrimitive/cross-realm.js

raw
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.toprimitive
5 es6id: 19.4.2.12
6 description: Value shared by all realms
7 info: |
8 Unless otherwise specified, well-known symbols values are shared by all
9 realms.
10 features: [cross-realm, Symbol.split]
11 ---*/
12
13 var OSymbol = $262.createRealm().global.Symbol;
14
15 assert.sameValue(Symbol.split, OSymbol.split);