Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[js] Better source maps for ops with side-effects.
  • Loading branch information
pmurias committed Feb 13, 2016
1 parent 45927a6 commit ac4325c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vm/js/Compiler.nqp
Expand Up @@ -698,10 +698,10 @@ class QAST::CompilerJS does DWIMYNameMangling does SerializeOnce {

method stored_result($chunk, :$want) {
if $chunk.type == $T_VOID || $want == $T_VOID {
Chunk.void($chunk, $chunk.expr~";\n");
Chunk.void($chunk, $chunk.expr~";\n", :node($chunk.node));
} else {
my $tmp := $*BLOCK.add_tmp();
Chunk.new($chunk.type, $tmp, [$chunk, "$tmp = {$chunk.expr};\n"]);
Chunk.new($chunk.type, $tmp, [$chunk, "$tmp = {$chunk.expr};\n"], :node($chunk.node));
}
}

Expand Down

0 comments on commit ac4325c

Please sign in to comment.