Skip to content

Commit

Permalink
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -120,8 +120,9 @@ public Object execute(IRScope scope, Object... data) {
// Make sure flags are computed
scope.computeScopeFlags();

// FIXME: USES_ZSUPER is probably wrong here. zsuper use should toggle requires_dynscope?
// Cannot run this on scopes that require dynamic scopes
if (scope.getFlags().contains(IRFlags.REQUIRES_DYNSCOPE)) {
if (scope.getFlags().contains(IRFlags.REQUIRES_DYNSCOPE) || scope.getFlags().contains(IRFlags.USES_ZSUPER)) {
return null;
}

0 comments on commit 44bd989

Please sign in to comment.