mirror of
https://github.com/tc39/test262.git
synced 2025-04-08 19:35:28 +02:00
Updating error messages
This commit is contained in:
parent
340dfba5dc
commit
c93caac30b
@ -9,9 +9,9 @@ features: [BigInt, Symbol]
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
3n > Symbol("2");
|
||||
}, "ToNumeric(rhs) throws.");
|
||||
}, "ToNumeric(Symbol) on RHS throws.");
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
Symbol("2") > 3n;
|
||||
}, "ToNumeric(rhs) throws.");
|
||||
}, "ToNumeric(Symbol) on LHS throws.");
|
||||
|
||||
|
@ -11,9 +11,9 @@ function MyError() {}
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
3n < Symbol("2");
|
||||
}, "ToNumeric(rhs) throws.");
|
||||
}, "ToNumeric(Symbol) on RHS throws.");
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
Symbol("2") < 3n;
|
||||
}, "ToNumeric(rhs) throws.");
|
||||
}, "ToNumeric(Symbol) on LHS throws.");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user