Skip to content
Snippets Groups Projects
Commit 340dfba5 authored by Caio Lima's avatar Caio Lima
Browse files

Added tests for relational comparison among BigInt and Symbol

parent 83d81532
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(rhs) throws.");
assert.throws(TypeError, function() {
Symbol("2") > 3n;
}, "ToNumeric(rhs) 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(rhs) throws.");
assert.throws(TypeError, function() {
Symbol("2") < 3n;
}, "ToNumeric(rhs) throws.");
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment