summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Boolean/symbol-coercion.js
blob: bf712f2a2fab2f6c914517bbed6341c50e805a99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Copyright (C) 2013 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-toboolean
description: >
    Boolean coercion operations on Symbols
features: [Symbol]
---*/
var sym = Symbol();

assert.sameValue(Boolean(sym).valueOf(), true, "`Boolean(sym).valueOf()` returns `true`");

reportCompare(0, 0);