bigint-and-symbol.js (489B)
1 // Copyright (C) 2018 Caio Lima. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 /*--- 4 description: Relational comparison of BigInt and Symbol values 5 esid: sec-abstract-relational-comparison 6 features: [BigInt, Symbol] 7 ---*/ 8 assert.throws(TypeError, function() { 9 3n > Symbol('2'); 10 }, '3n > Symbol("2") throws TypeError'); 11 12 assert.throws(TypeError, function() { 13 Symbol('2') > 3n; 14 }, 'Symbol("2") > 3n throws TypeError'); 15 16 reportCompare(0, 0);