Skip to content

Commit fb053db

Browse files
committed
NativeFunctionRootNode.getName() can be invoked from any thread.
1 parent b9c2e78 commit fb053db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graal-nodejs/mx.graal-nodejs/com.oracle.truffle.trufflenode/src/com/oracle/truffle/trufflenode/node/ExecuteNativeFunctionNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ public Object execute(VirtualFrame frame) {
345345

346346
@Override
347347
public String getName() {
348-
return JSFunction.getFunctionData(template.getFunctionObject(getRealm())).getName();
348+
return template.getFunctionData().getName();
349349
}
350350

351351
@Override

0 commit comments

Comments
 (0)