diff options
author | Mihai Bazon <mihai@bazon.net> | 2012-10-16 15:54:12 +0300 |
---|---|---|
committer | Mihai Bazon <mihai@bazon.net> | 2012-10-16 15:54:12 +0300 |
commit | 8957b3a694195a6e049472f7ef463b4ae3c0f8b8 (patch) | |
tree | 77f412945b51395fadcfab5f2779508ba7ea66e2 /lib | |
parent | 1ffd5265545c80babc9e7002ff42a64a0453d589 (diff) | |
download | tracifyjs-8957b3a694195a6e049472f7ef463b4ae3c0f8b8.tar.gz tracifyjs-8957b3a694195a6e049472f7ef463b4ae3c0f8b8.zip |
fix small glitches in source map generation
Diffstat (limited to 'lib')
-rw-r--r-- | lib/output.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/output.js b/lib/output.js index 674ae4db..dd40972e 100644 --- a/lib/output.js +++ b/lib/output.js @@ -870,6 +870,8 @@ function OutputStream(options) { } } output.print("."); + // the name after dot would be mapped about here. + output.add_mapping(self.end); output.print_name(self.property); }); DEFPRINT(AST_Sub, function(self, output){ @@ -1106,11 +1108,13 @@ function OutputStream(options) { DEFMAP(AST_Symbol, basic_sourcemap_gen); DEFMAP(AST_Jump, basic_sourcemap_gen); DEFMAP(AST_StatementWithBody, basic_sourcemap_gen); + DEFMAP(AST_LabeledStatement, noop); // since the label symbol will mark it DEFMAP(AST_Lambda, basic_sourcemap_gen); - DEFMAP(AST_PropAccess, basic_sourcemap_gen); DEFMAP(AST_Switch, basic_sourcemap_gen); + DEFMAP(AST_SwitchBranch, basic_sourcemap_gen); DEFMAP(AST_BlockStatement, basic_sourcemap_gen); DEFMAP(AST_Toplevel, noop); + DEFMAP(AST_New, basic_sourcemap_gen); DEFMAP(AST_Try, basic_sourcemap_gen); DEFMAP(AST_Catch, basic_sourcemap_gen); DEFMAP(AST_Finally, basic_sourcemap_gen); |