aboutsummaryrefslogtreecommitdiff
path: root/lib/ast.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ast.js')
-rw-r--r--lib/ast.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/ast.js b/lib/ast.js
index b4b47651..331d340b 100644
--- a/lib/ast.js
+++ b/lib/ast.js
@@ -314,6 +314,9 @@ var AST_Scope = DEFNODE("Scope", "variables functions uses_with uses_eval parent
if (this.functions) node.functions = this.functions.clone();
if (this.enclosed) node.enclosed = this.enclosed.slice();
return node;
+ },
+ pinned: function() {
+ return this.uses_eval || this.uses_with;
}
}, AST_Block);