Skip to content

Commit

Permalink
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -51,7 +51,11 @@ public Object execute(VirtualFrame frame) {
throw new RuntimeException(e);
}

moduleFunctionFlag = moduleFunctionObject != null && (boolean) moduleFunctionObject;
if (moduleFunctionObject instanceof Boolean) {
moduleFunctionFlag = (boolean) moduleFunctionObject;
} else {
moduleFunctionFlag = false;
}
}

RubyModule module;

0 comments on commit 2737804

Please sign in to comment.