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

Unified Diff: test/mjsunit/regress/regress-abort-context-allocate-params.js

Issue 2386623002: Mark param as used when we force context allocation due to implement access through arguments (Closed)
Patch Set: Update Created 4 years, 3 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/ast/scopes.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-abort-context-allocate-params.js
diff --git a/test/mjsunit/regress/regress-abort-preparsing-params.js b/test/mjsunit/regress/regress-abort-context-allocate-params.js
similarity index 99%
copy from test/mjsunit/regress/regress-abort-preparsing-params.js
copy to test/mjsunit/regress/regress-abort-context-allocate-params.js
index d2bdc5084d53419579eba2c25aa7d488efde1a48..3089f7817a8c179a6b174fb742f9c7a65c28417c 100644
--- a/test/mjsunit/regress/regress-abort-preparsing-params.js
+++ b/test/mjsunit/regress/regress-abort-context-allocate-params.js
@@ -2,11 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-var outer_a;
-
-function f(a) {
- outer_a = a;
- x = 1;
+function f(getter) {
+ arguments = 1;
x = 1;
x = 1;
x = 1;
@@ -942,5 +939,3 @@ function f(a) {
x = 1;
x = 1;
}
-f(1);
-assertEquals(1, outer_a);
« no previous file with comments | « src/ast/scopes.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698