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 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
438 { | 438 { |
439 var mirror = ensureFuncMirror(); | 439 var mirror = ensureFuncMirror(); |
440 var context = mirror.context(); | 440 var context = mirror.context(); |
441 if (context && context.data()) | 441 if (context && context.data()) |
442 return Number(context.data()); | 442 return Number(context.data()); |
443 return 0; | 443 return 0; |
444 } | 444 } |
445 | 445 |
446 /** | 446 /** |
447 * @param {string} expression | 447 * @param {string} expression |
| 448 * @param {boolean} throwOnSideEffect |
448 * @return {*} | 449 * @return {*} |
449 */ | 450 */ |
450 function evaluate(expression) | 451 function evaluate(expression, throwOnSideEffect) |
451 { | 452 { |
452 return frameMirror.evaluate(expression).value(); | 453 return frameMirror.evaluate(expression, throwOnSideEffect).value(); |
453 } | 454 } |
454 | 455 |
455 /** @return {undefined} */ | 456 /** @return {undefined} */ |
456 function restart() | 457 function restart() |
457 { | 458 { |
458 return frameMirror.restart(); | 459 return frameMirror.restart(); |
459 } | 460 } |
460 | 461 |
461 /** | 462 /** |
462 * @param {number} scopeNumber | 463 * @param {number} scopeNumber |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
522 case ScopeType.Global: | 523 case ScopeType.Global: |
523 case ScopeType.With: | 524 case ScopeType.With: |
524 result = scopeObject; | 525 result = scopeObject; |
525 break; | 526 break; |
526 } | 527 } |
527 return result; | 528 return result; |
528 } | 529 } |
529 | 530 |
530 return DebuggerScript; | 531 return DebuggerScript; |
531 })(); | 532 })(); |
OLD | NEW |