summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Object/symbol_object-returns-fresh-symbol.js
blob: 49ea3658f0f5c49fe4adaab89eb963e324fad6c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright (C) 2013 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 19.1.1.1_S3
description: >
    Object(sym) returns a fresh Symbol object
features: [Symbol]
---*/
var symA = Symbol('A');
var symB = Symbol();

assert.notSameValue(Object(symA), symA, "The value of `Object(symA)` is not `symA`");
assert.notSameValue(Object(symB), symB, "The value of `Object(symB)` is not `symB`");

reportCompare(0, 0);