mirror of https://github.com/tc39/test262.git
Adding Symbol to Array.prototype.sort "throws on a non-undefined non-function" (#1066)
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
This commit is contained in:
parent
29e69ddb4e
commit
e5ffc904d6
|
@ -47,3 +47,7 @@ assert.throws(TypeError, function() {
|
|||
assert.throws(TypeError, function() {
|
||||
sample.sort({});
|
||||
});
|
||||
|
||||
assert.throws(TypeError, function() {
|
||||
sample.sort(Symbol());
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue