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

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

Issue 748113003: harmony-scoping: Catch variable should be VAR, not LET (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years, 1 month 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 | « test/mjsunit/harmony/block-conflicts.js ('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 2014 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-scoping
6 "use strict";
7
8 function f() {
9 var y = 1;
10 var q1;
11 var q;
12 var z = new Error();
13 try {
14 throw z;
15 } catch (y) {
16 assertTrue(z === y);
17 q1 = function() { return y; }
18 var y = 15;
19 q = function() { return y; }
20 assertSame(15, y);
21 }
22 assertSame(1, y);
23 assertSame(15, q1());
24 assertSame(15, q());
25 }
26
27 f();
OLDNEW
« no previous file with comments | « test/mjsunit/harmony/block-conflicts.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698