Skip to content

Commit 8625374

Browse files
committed
don't create builtin functions for core code
1 parent b359a8d commit 8625374

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/function/FunctionDefinitionNode.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,7 @@ public Object execute(VirtualFrame frame) {
6565
defaults.executeVoid(frame);
6666

6767
PCell[] closure = getClosureFromLocals(frame);
68-
if (getContext().isInitialized()) {
69-
return factory().createFunction(functionName, enclosingClassName, arity, callTarget, frameDescriptor, PArguments.getGlobals(frame), closure);
70-
} else {
71-
return factory().createBuiltinFunction(functionName, enclosingClassName, arity, callTarget, frameDescriptor, PArguments.getGlobals(frame), closure);
72-
}
68+
return factory().createFunction(functionName, enclosingClassName, arity, callTarget, frameDescriptor, PArguments.getGlobals(frame), closure);
7369
}
7470

7571
public String getFunctionName() {

0 commit comments

Comments
 (0)