Skip to content

Commit e73d54b

Browse files
committed
Mark the RootNode created by JavaScriptLanguage.parse() as not instrumentable.
1 parent abef233 commit e73d54b

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

graal-js/src/com.oracle.truffle.js/src/com/oracle/truffle/js/lang/JavaScriptLanguage.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,11 @@ public Object execute(VirtualFrame frame) {
220220
public boolean isInternal() {
221221
return true;
222222
}
223+
224+
@Override
225+
protected boolean isInstrumentable() {
226+
return false;
227+
}
223228
};
224229
return Truffle.getRuntime().createCallTarget(rootNode);
225230
} else {
@@ -296,6 +301,16 @@ private Object executeImpl(JSRealm realm, Object[] arguments) {
296301
Object function = program.run(realm);
297302
return JSRuntime.jsObjectToJavaObject(JSFunction.call(JSArguments.create(Undefined.instance, function, arguments)));
298303
}
304+
305+
@Override
306+
public boolean isInternal() {
307+
return true;
308+
}
309+
310+
@Override
311+
protected boolean isInstrumentable() {
312+
return false;
313+
}
299314
};
300315
}
301316

0 commit comments

Comments
 (0)