Skip to content
Permalink
Browse files
Revert "[Truffle] Expect moduleFunctionObject to be unset or a boolean."
This reverts commit b2fbe9e.
  • Loading branch information
eregon committed Nov 3, 2014
1 parent b2fbe9e commit 2737804129eced23ec2e067c709180e9076e46ef
Showing 1 changed file with 5 additions and 1 deletion.
@@ -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.