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

Side by Side Diff: test/mjsunit/regress/regress-debugger-redirect.js

Issue 1571873004: Ship ES2015 sloppy-mode const semantics (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Associate with --harmony-shipping 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
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: --expose-debug-as debug 5 // Flags: --expose-debug-as debug --legacy-const
6 6
7 function f(x) { 7 function f(x) {
8 // This function compiles into code that only throws a redeclaration 8 // This function compiles into code that only throws a redeclaration
9 // error. It contains no stack check and has no function body. 9 // error. It contains no stack check and has no function body.
10 const x = 0; 10 const x = 0;
11 return x; 11 return x;
12 } 12 }
13 13
14 function g() { 14 function g() {
15 f(0); 15 f(0);
(...skipping 12 matching lines...) Expand all
28 } catch (e) { 28 } catch (e) {
29 exception = e; 29 exception = e;
30 } 30 }
31 } 31 }
32 32
33 Debug.setListener(listener); 33 Debug.setListener(listener);
34 34
35 assertThrows(g); 35 assertThrows(g);
36 assertNull(exception); 36 assertNull(exception);
37 assertTrue(called); 37 assertTrue(called);
OLDNEW
« no previous file with comments | « test/mjsunit/regress/regress-88591.js ('k') | test/mjsunit/regress/regress-handle-illegal-redeclaration.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698