Skip to content

Commit 423569e

Browse files
committed
Extending the instrumentation test of JSTypeofIdenticalNode.
1 parent 67f7cb1 commit 423569e

File tree

1 file changed

+10
-1
lines changed
  • graal-js/src/com.oracle.truffle.js.test.instrumentation/src/com/oracle/truffle/js/test/instrumentation

1 file changed

+10
-1
lines changed

graal-js/src/com.oracle.truffle.js.test.instrumentation/src/com/oracle/truffle/js/test/instrumentation/GR18957.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2019, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2019, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* The Universal Permissive License (UPL), Version 1.0
@@ -42,7 +42,10 @@
4242

4343
import com.oracle.truffle.api.instrumentation.LoadSourceEvent;
4444
import com.oracle.truffle.api.instrumentation.LoadSourceListener;
45+
import com.oracle.truffle.api.instrumentation.LoadSourceSectionEvent;
46+
import com.oracle.truffle.api.instrumentation.LoadSourceSectionListener;
4547
import com.oracle.truffle.api.instrumentation.SourceFilter;
48+
import com.oracle.truffle.api.instrumentation.SourceSectionFilter;
4649
import com.oracle.truffle.api.instrumentation.TruffleInstrument;
4750
import com.oracle.truffle.js.lang.JavaScriptLanguage;
4851
import org.graalvm.polyglot.Context;
@@ -83,6 +86,12 @@ public void onLoad(LoadSourceEvent event) {
8386
// no action needed
8487
}
8588
}, true);
89+
env.getInstrumenter().visitLoadedSourceSections(SourceSectionFilter.ANY, new LoadSourceSectionListener() {
90+
@Override
91+
public void onLoad(LoadSourceSectionEvent event) {
92+
// no action needed
93+
}
94+
});
8695
}
8796
}
8897
}

0 commit comments

Comments
 (0)