diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-09-23 14:29:00 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-09-23 16:03:06 -0700 |
commit | 73abe82c6ca2cccd9b69e588dd5faefb9a36b60c (patch) | |
tree | 50ec8c63adc9431630a464b3f46287b26526613f | |
parent | 2a0f90ac5964f73e5e5b8bee35a8962ba9cca4a2 (diff) |
fix split file marker
-rw-r--r-- | src/jsifier.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jsifier.js b/src/jsifier.js index 05dd256c..01546b05 100644 --- a/src/jsifier.js +++ b/src/jsifier.js @@ -675,10 +675,10 @@ function JSify(data, functionsOnly, givenFunctions) { ret += indent + 'if (Date.now() - START_TIME >= ' + (EXECUTION_TIMEOUT*1000) + ') throw "Timed out!" + (new Error().stack);\n'; } - if (PRINT_SPLIT_FILE_MARKER && Debugging.on && Debugging.getAssociatedSourceFile(line.lineNum)) { + if (PRINT_SPLIT_FILE_MARKER && Debugging.on && Debugging.getAssociatedSourceFile(label.lines[label.lines.length-1].lineNum)) { // Overwrite the associated source file for every line. The last line should contain the source file associated to // the return value/address of outer most block (the marked function). - associatedSourceFile = Debugging.getAssociatedSourceFile(line.lineNum); + associatedSourceFile = Debugging.getAssociatedSourceFile(label.lines[label.lines.length-1].lineNum); } // for special labels we care about (for phi), mark that we visited them |