| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 }; |
| OLD | NEW |