Skip to content

Commit

Permalink
Guard against undefined scope
Browse files Browse the repository at this point in the history
Fix: babel#803
Altough not sure if the root cause is on babel.
  • Loading branch information
diervo committed Feb 25, 2018
1 parent 8cf9f33 commit 3770b21
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -14,7 +14,7 @@ function isPureAndUndefined(
return true;
}

if (!rval.isPure()) {
if (!rval.scope || !rval.isPure()) {
return false;
}
const evaluation = evaluate(rval, { tdz });
Expand Down

0 comments on commit 3770b21

Please sign in to comment.