blob: 7bea7e00e045225fc47962c60869e5849fc33340 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-symbol.prototype.valueof
description: Called on a Symbol value
info: |
1. Let s be the this value.
2. If Type(s) is Symbol, return s.
features: [Symbol]
---*/
var valueOf = Symbol.prototype.valueOf;
var subject = Symbol('s');
assert.sameValue(valueOf.call(subject), subject);
reportCompare(0, 0);
|