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

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

Issue 1281163002: [parser] partially revert "use-strict directives in function body affect init block" Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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/strong/function-arity.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/strong/literals.js
diff --git a/test/mjsunit/strong/literals.js b/test/mjsunit/strong/literals.js
index 8c04d6e35a7f7ed2fd48a30052d92b5e145cf96a..28123c218ee1d7675f36164758378d7c25940c7c 100644
--- a/test/mjsunit/strong/literals.js
+++ b/test/mjsunit/strong/literals.js
@@ -112,14 +112,14 @@
assertWeakArray({a: [], b: {}}.a);
})();
-(function StrongArrayLiterals(...args) {
+(function StrongArrayLiterals() {
'use strong';
function assertStrongArray(x) {
assertTrue(%IsStrong(x));
assertSame(Array.prototype, Object.getPrototypeOf(x));
}
let [...r] = [];
- assertStrongArray(args);
+ assertStrongArray((function(...a) { return a; })());
assertStrongArray(r);
assertStrongArray([]);
assertStrongArray([1, 2, 3]);
« no previous file with comments | « test/mjsunit/strong/function-arity.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698