Skip to content
Snippets Groups Projects
Commit e5ffc904 authored by Rick Waldron's avatar Rick Waldron Committed by Leo Balter
Browse files

Adding Symbol to Array.prototype.sort "throws on a non-undefined non-function" (#1066)

parent 29e69ddb
No related branches found
No related tags found
No related merge requests found
...@@ -47,3 +47,7 @@ assert.throws(TypeError, function() { ...@@ -47,3 +47,7 @@ assert.throws(TypeError, function() {
assert.throws(TypeError, function() { assert.throws(TypeError, function() {
sample.sort({}); sample.sort({});
}); });
assert.throws(TypeError, function() {
sample.sort(Symbol());
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment