Browse files

Only do the exports magic if the right side is a symbol

  • Loading branch information...
1 parent 9544042 commit ebb1ced2f7cc15a9e14ccbd3f8d164e19d3ce96b @mishoo committed Apr 3, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 livenode.js
View
3 livenode.js
@@ -239,7 +239,8 @@ function rewrite_globals(code, ctx) {
&& node.left instanceof u2.AST_Dot
&& node.left.expression instanceof u2.AST_SymbolRef
&& node.left.expression.name == "exports"
- && !in_context(node.left.expression))
+ && !in_context(node.left.expression)
+ && node.right instanceof u2.AST_SymbolRef)
{
descend(node, this);

0 comments on commit ebb1ced

Please sign in to comment.