| 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 |
es6id: 19.4.2.2 |
| 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.hasInstance] |
| 11 |
---*/ |
| 12 |
|
| 13 |
var OSymbol = $262.createRealm().global.Symbol; |
| 14 |
|
| 15 |
assert.sameValue(Symbol.hasInstance, OSymbol.hasInstance); |