mirror of https://github.com/tc39/test262.git
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…
Reference in New Issue