| 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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 scopeType.push(scopeMirror.scopeType()); | 257 scopeType.push(scopeMirror.scopeType()); |
| 258 scopeChain.push(scopeObject); | 258 scopeChain.push(scopeObject); |
| 259 } | 259 } |
| 260 | 260 |
| 261 function evaluate(expression) { | 261 function evaluate(expression) { |
| 262 return frameMirror.evaluate(expression, false).value(); | 262 return frameMirror.evaluate(expression, false).value(); |
| 263 } | 263 } |
| 264 | 264 |
| 265 return { | 265 return { |
| 266 "sourceID": sourceID, | 266 "sourceID": sourceID, |
| 267 "line": location.line, | 267 "line": location ? location.line : 0, |
| 268 "column": location.column, | 268 "column": location ? location.column : 0, |
| 269 "functionName": functionName, | 269 "functionName": functionName, |
| 270 "thisObject": thisObject, | 270 "thisObject": thisObject, |
| 271 "scopeChain": scopeChain, | 271 "scopeChain": scopeChain, |
| 272 "scopeType": scopeType, | 272 "scopeType": scopeType, |
| 273 "evaluate": evaluate, | 273 "evaluate": evaluate, |
| 274 "caller": callerFrame | 274 "caller": callerFrame |
| 275 }; | 275 }; |
| 276 } | 276 } |
| 277 | 277 |
| 278 return DebuggerScript; | 278 return DebuggerScript; |
| 279 })(); | 279 })(); |
| OLD | NEW |