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:
Rick Waldron 2017-06-28 10:34:05 -04:00 committed by Leo Balter
parent 29e69ddb4e
commit e5ffc904d6
1 changed files with 4 additions and 0 deletions

View File

@ -47,3 +47,7 @@ assert.throws(TypeError, function() {
assert.throws(TypeError, function() {
sample.sort({});
});
assert.throws(TypeError, function() {
sample.sort(Symbol());
});