From 02a84385a02ccf4cf3a1ccca2fc5f6a90fb43487 Mon Sep 17 00:00:00 2001 From: Mihai Bazon Date: Fri, 7 Jun 2013 12:51:23 +0300 Subject: Don't swap binary ops when "use asm" is in effect. Refs #167 --- lib/ast.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/ast.js') diff --git a/lib/ast.js b/lib/ast.js index a1301da8..b8e89f23 100644 --- a/lib/ast.js +++ b/lib/ast.js @@ -945,6 +945,9 @@ TreeWalker.prototype = { if (x instanceof type) return x; } }, + has_directive: function(type) { + return this.find_parent(AST_Scope).has_directive(type); + }, in_boolean_context: function() { var stack = this.stack; var i = stack.length, self = stack[--i]; -- cgit v1.2.3