summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/expressions/greater-than/bigint-and-symbol.js
blob: 5de77bc5d124785e00e012ca05d985e4afb8f994 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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);