aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMihai Bazon <mihai@bazon.net>2012-10-16 15:54:12 +0300
committerMihai Bazon <mihai@bazon.net>2012-10-16 15:54:12 +0300
commit8957b3a694195a6e049472f7ef463b4ae3c0f8b8 (patch)
tree77f412945b51395fadcfab5f2779508ba7ea66e2 /lib
parent1ffd5265545c80babc9e7002ff42a64a0453d589 (diff)
downloadtracifyjs-8957b3a694195a6e049472f7ef463b4ae3c0f8b8.tar.gz
tracifyjs-8957b3a694195a6e049472f7ef463b4ae3c0f8b8.zip
fix small glitches in source map generation
Diffstat (limited to 'lib')
-rw-r--r--lib/output.js6
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);