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

Side by Side Diff: test/mjsunit/regress/regress-crbug-517592.js

Issue 1654223003: Revert "Removed support deprecated (//@|/*@) source(URL|MappingURL)=" (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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/regress/regress-crbug-481896.js ('k') | test/mjsunit/stack-traces.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: --expose-debug-as debug --min-preparse-length=10 5 // Flags: --expose-debug-as debug --min-preparse-length=10
6 6
7 var source = 7 var source =
8 "var foo = function foo() {\n" + 8 "var foo = function foo() {\n" +
9 " return 1;\n" + 9 " return 1;\n" +
10 "}\n" + 10 "}\n" +
11 "//# sourceURL=test"; 11 "//@ sourceURL=test";
12 12
13 Debug = debug.Debug; 13 Debug = debug.Debug;
14 Debug.setListener(listener); 14 Debug.setListener(listener);
15 var exception = null; 15 var exception = null;
16 var break_count = 0; 16 var break_count = 0;
17 17
18 function listener(event, exec_state, event_data, data) { 18 function listener(event, exec_state, event_data, data) {
19 if (event == Debug.DebugEvent.Break) break_count++; 19 if (event == Debug.DebugEvent.Break) break_count++;
20 if (event != Debug.DebugEvent.AfterCompile) return; 20 if (event != Debug.DebugEvent.AfterCompile) return;
21 try { 21 try {
22 var name = event_data.script().name(); 22 var name = event_data.script().name();
23 var id = event_data.script().id(); 23 var id = event_data.script().id();
24 assertEquals("test", name); 24 assertEquals("test", name);
25 Debug.setScriptBreakPointById(id, 2); 25 Debug.setScriptBreakPointById(id, 2);
26 } catch (e) { 26 } catch (e) {
27 exception = e; 27 exception = e;
28 } 28 }
29 } 29 }
30 30
31 eval(source); 31 eval(source);
32 32
33 assertEquals(0, break_count); 33 assertEquals(0, break_count);
34 foo(); 34 foo();
35 assertEquals(1, break_count); 35 assertEquals(1, break_count);
36 assertNull(exception); 36 assertNull(exception);
OLDNEW
« no previous file with comments | « test/mjsunit/regress/regress-crbug-481896.js ('k') | test/mjsunit/stack-traces.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698