Index: test/mjsunit/es6/spread-call.js |
diff --git a/test/mjsunit/es6/spread-call.js b/test/mjsunit/es6/spread-call.js |
index de38f129cd0a39c029af5429371454b004e4dcb0..33d55a815fa97c1847879679bc617709b51222e8 100644 |
--- a/test/mjsunit/es6/spread-call.js |
+++ b/test/mjsunit/es6/spread-call.js |
@@ -49,6 +49,9 @@ |
return sum; |
} |
+ assertThrows(function() { |
+ sum(...0); |
+ }, TypeError); |
assertEquals(void 0, sum(..."")); |
assertEquals(void 0, sum(...[])); |
assertEquals(void 0, sum(...new Set)); |
@@ -201,6 +204,9 @@ |
return sum; |
} |
+ assertThrows(function() { |
+ sum(...0); |
+ }, TypeError); |
assertEquals(void 0, sum(..."")); |
assertEquals(void 0, sum(...[])); |
assertEquals(void 0, sum(...new Set)); |