Skip to content
Snippets Groups Projects
Unverified Commit c38bf8ba authored by Rick Waldron's avatar Rick Waldron Committed by GitHub
Browse files

Merge pull request #1546 from caiolima/big-int-relational-symbol

Added tests for relational comparison among BigInt and Symbol
parents 524e8e43 c93caac3
No related branches found
No related tags found
No related merge requests found
// Copyright (C) 2018 Caio Lima. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: Relational comparison of BigInt and Symbol values
esid: sec-abstract-relational-comparison
features: [BigInt, Symbol]
---*/
assert.throws(TypeError, function() {
3n > Symbol("2");
}, "ToNumeric(Symbol) on RHS throws.");
assert.throws(TypeError, function() {
Symbol("2") > 3n;
}, "ToNumeric(Symbol) on LHS throws.");
// Copyright (C) 2018 Caio Lima. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: Relational comparison of BigInt and Symbol values
esid: sec-abstract-relational-comparison
features: [BigInt, Symbol]
---*/
function MyError() {}
assert.throws(TypeError, function() {
3n < Symbol("2");
}, "ToNumeric(Symbol) on RHS throws.");
assert.throws(TypeError, function() {
Symbol("2") < 3n;
}, "ToNumeric(Symbol) on LHS throws.");
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment