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

Unified Diff: test/mjsunit/strong/declaration-after-use.js

Issue 1115263004: [strong] Check arity of functions (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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 | « test/cctest/test-api.cc ('k') | test/mjsunit/strong/function-arity.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/strong/declaration-after-use.js
diff --git a/test/mjsunit/strong/declaration-after-use.js b/test/mjsunit/strong/declaration-after-use.js
index 020067c1e5aa3c56d8da5e58788235a868b987ac..05df8e835c9b4e9bc8f280374353f270983dac2f 100644
--- a/test/mjsunit/strong/declaration-after-use.js
+++ b/test/mjsunit/strong/declaration-after-use.js
@@ -211,13 +211,14 @@ function assertThrowsHelper(code) {
func2;
function func4(p, ...rest) { p; rest; this; func2; }
- func4();
+ // TODO(arv): The arity checking is not correct with rest parameters.
+ func4(1, 2);
let func5 = (p1, p2) => { p1; p2; };
- func5();
+ func5(1, 2);
let func5b = p1 => p1;
- func5b();
+ func5b(1);
function func6() {
var1, var2a, var2b, var2c;
« no previous file with comments | « test/cctest/test-api.cc ('k') | test/mjsunit/strong/function-arity.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698