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 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
486 var script = ensureScriptMirror(); | 486 var script = ensureScriptMirror(); |
487 return script.id(); | 487 return script.id(); |
488 } | 488 } |
489 | 489 |
490 /** | 490 /** |
491 * @param {string} expression | 491 * @param {string} expression |
492 * @return {*} | 492 * @return {*} |
493 */ | 493 */ |
494 function evaluate(expression) | 494 function evaluate(expression) |
495 { | 495 { |
496 return frameMirror.evaluate(expression, false).value(); | 496 return frameMirror.evaluate(expression).value(); |
497 } | 497 } |
498 | 498 |
499 /** @return {undefined} */ | 499 /** @return {undefined} */ |
500 function restart() | 500 function restart() |
501 { | 501 { |
502 return frameMirror.restart(); | 502 return frameMirror.restart(); |
503 } | 503 } |
504 | 504 |
505 /** | 505 /** |
506 * @param {number} scopeNumber | 506 * @param {number} scopeNumber |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
572 break; | 572 break; |
573 } | 573 } |
574 return result; | 574 return result; |
575 } | 575 } |
576 | 576 |
577 // We never resolve Mirror by its handle so to avoid memory leaks caused by Mirr
ors in the cache we disable it. | 577 // We never resolve Mirror by its handle so to avoid memory leaks caused by Mirr
ors in the cache we disable it. |
578 ToggleMirrorCache(false); | 578 ToggleMirrorCache(false); |
579 | 579 |
580 return DebuggerScript; | 580 return DebuggerScript; |
581 })(); | 581 })(); |
OLD | NEW |