diff options
Diffstat (limited to 'js/src/tests/non262/Tuple/from/items-is-null-throws.js')
-rw-r--r-- | js/src/tests/non262/Tuple/from/items-is-null-throws.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/js/src/tests/non262/Tuple/from/items-is-null-throws.js b/js/src/tests/non262/Tuple/from/items-is-null-throws.js new file mode 100644 index 0000000000..d6574bebd1 --- /dev/null +++ b/js/src/tests/non262/Tuple/from/items-is-null-throws.js @@ -0,0 +1,5 @@ +// |reftest| skip-if(!this.hasOwnProperty("Tuple")) +assertThrowsInstanceOf(() => Tuple.from(null), TypeError, + 'Tuple.from(null) should throw'); + +reportCompare(0, 0); |