| 1 |
// Copyright (C) 2013 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-object.is |
| 5 |
description: > |
| 6 |
Object.is/SameValue: Symbol |
| 7 |
features: [Object.is,Symbol] |
| 8 |
---*/ |
| 9 |
var symA = Symbol('66'); |
| 10 |
var symB = Symbol('66'); |
| 11 |
|
| 12 |
|
| 13 |
assert.sameValue(Object.is(symA, symA), true, "`Object.is(symA, symA)` returns `true`"); |
| 14 |
assert.sameValue(Object.is(symB, symB), true, "`Object.is(symB, symB)` returns `true`"); |
| 15 |
assert.sameValue(Object.is(symA, symB), false, "`Object.is(symA, symB)` returns `false`"); |