Skip to content

Commit

Permalink
Revert "[Truffle] Expect moduleFunctionObject to be unset or a boolean."
Browse files Browse the repository at this point in the history
This reverts commit b2fbe9e.
  • Loading branch information
eregon committed Nov 3, 2014
1 parent b2fbe9e commit 2737804
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -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;
Expand Down

0 comments on commit 2737804

Please sign in to comment.