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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js

Issue 2887413003: [DevTools] fix name for module scope in scopes sidebar pane (Closed)
Patch Set: Created 3 years, 7 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 | « third_party/WebKit/LayoutTests/inspector/sources/debugger/debugger-es6-harmony-scopes-expected.txt ('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
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 1352 matching lines...) Expand 10 before | Expand all | Expand 10 after
1363 case Protocol.Debugger.ScopeType.Catch: 1363 case Protocol.Debugger.ScopeType.Catch:
1364 return Common.UIString('Catch'); 1364 return Common.UIString('Catch');
1365 case Protocol.Debugger.ScopeType.Block: 1365 case Protocol.Debugger.ScopeType.Block:
1366 return Common.UIString('Block'); 1366 return Common.UIString('Block');
1367 case Protocol.Debugger.ScopeType.Script: 1367 case Protocol.Debugger.ScopeType.Script:
1368 return Common.UIString('Script'); 1368 return Common.UIString('Script');
1369 case Protocol.Debugger.ScopeType.With: 1369 case Protocol.Debugger.ScopeType.With:
1370 return Common.UIString('With Block'); 1370 return Common.UIString('With Block');
1371 case Protocol.Debugger.ScopeType.Global: 1371 case Protocol.Debugger.ScopeType.Global:
1372 return Common.UIString('Global'); 1372 return Common.UIString('Global');
1373 case Protocol.Debugger.ScopeType.Module:
1374 return Common.UIString('Module');
1373 } 1375 }
1374 return ''; 1376 return '';
1375 } 1377 }
1376 1378
1377 1379
1378 /** 1380 /**
1379 * @return {string|undefined} 1381 * @return {string|undefined}
1380 */ 1382 */
1381 name() { 1383 name() {
1382 return this._name; 1384 return this._name;
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
1471 stack.callFrames.shift(); 1473 stack.callFrames.shift();
1472 if (previous && (!stack.callFrames.length && !stack.promiseCreationFrame)) 1474 if (previous && (!stack.callFrames.length && !stack.promiseCreationFrame))
1473 previous.parent = stack.parent; 1475 previous.parent = stack.parent;
1474 else 1476 else
1475 previous = stack; 1477 previous = stack;
1476 stack = stack.parent; 1478 stack = stack.parent;
1477 } 1479 }
1478 return asyncStackTrace; 1480 return asyncStackTrace;
1479 } 1481 }
1480 }; 1482 };
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/inspector/sources/debugger/debugger-es6-harmony-scopes-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698