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

Side by Side Diff: test/mjsunit/harmony/regress/regress-4160.js

Issue 1146063006: Fix arrow functions requiring context without slots. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Cleanup test case. Created 5 years, 6 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 unified diff | Download patch
« no previous file with comments | « src/x87/full-codegen-x87.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Flags: --harmony-arrow-functions --allow-natives-syntax
6
7 (function(x) {
8 (function(x) {
9 var boom = (() => eval(x));
10 assertEquals(23, boom());
11 assertEquals(23, boom());
12 %OptimizeFunctionOnNextCall(boom);
13 assertEquals(23, boom());
14 assertEquals("23", x);
15 })("23");
16 assertEquals("42", x);
17 })("42");
18
19 (function(x) {
20 (function(x) {
21 var boom = (() => (eval("var x = 66"), x));
22 assertEquals(66, boom());
23 assertEquals(66, boom());
24 %OptimizeFunctionOnNextCall(boom);
25 assertEquals(66, boom());
26 assertEquals("23", x);
27 })("23");
28 assertEquals("42", x);
29 })("42");
OLDNEW
« no previous file with comments | « src/x87/full-codegen-x87.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698