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

Side by Side Diff: test/mjsunit/es6/block-eval-var-over-legacy-const.js

Issue 1551443002: Ship ES2015 sloppy-mode function hoisting, let, class (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Re-add another test Created 4 years, 11 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 | « test/mjsunit/es6/block-early-errors.js ('k') | test/mjsunit/es6/block-let-contextual-sloppy.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Flags: --harmony-sloppy --harmony-sloppy-let --harmony-sloppy-function 5 // Flags: --harmony-sloppy --harmony-sloppy-let --harmony-sloppy-function
6 6
7 // Var-let conflict in a function throws, even if the var is in an eval 7 // Var-let conflict in a function throws, even if the var is in an eval
8 8
9 // Throws at the top level of a function 9 // Throws at the top level of a function
10 assertThrows(function() { 10 assertThrows(function() {
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 (function() { 75 (function() {
76 let x; 76 let x;
77 with ({x: 1}) { 77 with ({x: 1}) {
78 eval("const x = 2;"); 78 eval("const x = 2;");
79 } 79 }
80 })(); 80 })();
81 } catch (e) { 81 } catch (e) {
82 caught = true; 82 caught = true;
83 } 83 }
84 assertTrue(caught); 84 assertTrue(caught);
OLDNEW
« no previous file with comments | « test/mjsunit/es6/block-early-errors.js ('k') | test/mjsunit/es6/block-let-contextual-sloppy.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698