aboutsummaryrefslogtreecommitdiff
path: root/lib/scope.js
diff options
context:
space:
mode:
authoralexlamsl <alexlamsl@gmail.com>2017-01-17 17:33:40 +0800
committerRichard van Velzen <rvanvelzen1@gmail.com>2017-01-19 21:06:28 +0100
commit48284844a461e6113bb9911cdcdad7ab8a3d85de (patch)
tree05c5d8ff7f2a312a8880c143dbfcdf35abe11dd5 /lib/scope.js
parentec2e5fa3a2e5cf421aebd94b93c668b18e540c69 (diff)
downloadtracifyjs-48284844a461e6113bb9911cdcdad7ab8a3d85de.tar.gz
tracifyjs-48284844a461e6113bb9911cdcdad7ab8a3d85de.zip
add missing LHS cases which global_defs should avoid
Diffstat (limited to 'lib/scope.js')
-rw-r--r--lib/scope.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/scope.js b/lib/scope.js
index 4943b568..bc5db90d 100644
--- a/lib/scope.js
+++ b/lib/scope.js
@@ -220,7 +220,7 @@ AST_Toplevel.DEFMETHOD("figure_out_scope", function(options){
sym = g;
}
node.thedef = sym;
- if (parent instanceof AST_Unary && (parent.operator === '++' || parent.operator === '--')
+ if (parent instanceof AST_Unary && (parent.operator === "++" || parent.operator === "--")
|| parent instanceof AST_Assign && parent.left === node) {
sym.modified = true;
}