blob: 0cbf5aba2fc439be1876039dd58ed3ed9fcd8a77 [file] [log] [blame]
// 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);