Debian Codegraph @

js/src/tests/test262/built-ins/Boolean/symbol-coercion.js

raw
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-toboolean
5 description: >
6 Boolean coercion operations on Symbols
7 features: [Symbol]
8 ---*/
9 var sym = Symbol();
10
11 assert.sameValue(Boolean(sym).valueOf(), true, "`Boolean(sym).valueOf()` returns `true`");
12
13 reportCompare(0, 0);