Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1603)

Unified Diff: test/mjsunit/es6/spread-call.js

Issue 2655013002: [Builtins] Smi-check the spread and go to runtime in CheckSpreadAndPushToStack. (Closed)
Patch Set: Put a try/catch in the regression test so it doesn't fail Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/builtins/x87/builtins-x87.cc ('k') | test/mjsunit/regress/regress-685086.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
« no previous file with comments | « src/builtins/x87/builtins-x87.cc ('k') | test/mjsunit/regress/regress-685086.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698