diff options
Diffstat (limited to 'js/src/tests/test262/language/expressions/less-than/bigint-and-symbol.js')
-rw-r--r-- | js/src/tests/test262/language/expressions/less-than/bigint-and-symbol.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/js/src/tests/test262/language/expressions/less-than/bigint-and-symbol.js b/js/src/tests/test262/language/expressions/less-than/bigint-and-symbol.js new file mode 100644 index 0000000000..f6382f64d9 --- /dev/null +++ b/js/src/tests/test262/language/expressions/less-than/bigint-and-symbol.js @@ -0,0 +1,16 @@ +// 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'); +}, '3n < Symbol("2") throws TypeError'); + +assert.throws(TypeError, function() { + Symbol('2') < 3n; +}, 'Symbol("2") < 3n throws TypeError'); + +reportCompare(0, 0); |