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

Unified Diff: test/mjsunit/strong/destructuring.js

Issue 1300103005: [parser] disallow language mode directive in body of function with non-simple parameters (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: flag implications don't work in test suite? Created 5 years, 4 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/mjsunit/harmony/spread-call-super-property.js ('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/destructuring.js
diff --git a/test/mjsunit/strong/destructuring.js b/test/mjsunit/strong/destructuring.js
index 67fe2ef4f163a699fecf24e1721c4ed5c8b3d691..3145dcfb4d9312235c63ed894eb5db618235f135 100644
--- a/test/mjsunit/strong/destructuring.js
+++ b/test/mjsunit/strong/destructuring.js
@@ -6,7 +6,10 @@
// Flags: --harmony-arrow-functions --strong-mode --allow-natives-syntax
(function() {
- function f({ x = function() { return []; } }) { "use strong"; return x(); }
+ var f = (function() {
+ "use strong";
+ return function f({ x = function() { return []; } }) { return x(); };
+ })();
var a = f({ x: undefined });
assertTrue(%IsStrong(a));
@@ -19,7 +22,10 @@
assertFalse(%IsStrong(a));
function outerf() { return []; }
- function f2({ x = outerf }) { "use strong"; return x(); }
+ var f2 = (function() {
+ "use strong";
+ return function f2({ x = outerf }) { return x(); };
+ })();
a = f2({ x: undefined });
assertFalse(%IsStrong(a));
})();
« no previous file with comments | « test/mjsunit/harmony/spread-call-super-property.js ('k') | test/mjsunit/strong/function-arity.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698