Skip to content

Commit bf536d0

Browse files
author
Jaroslav Tulach
committed
[GR-24302] Verify insight in node can be used immediately.
PullRequest: graal/6737
2 parents 3d6edd0 + a96e12b commit bf536d0

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
> cat > ${TMP_DIR}/agent.js
2+
< let firstCall = function() {
3+
< console.log("Hello");
4+
< };
5+
< insight.on('return', firstCall, {
6+
< roots: true
7+
< });
8+
> cat > ${TMP_DIR}/script.js
9+
< console.log("World");
10+
> cd ${TMP_DIR}
11+
>[6] node --experimental-options --insight=agent.js script.js
12+
agent.js:3
13+
console.log("Hello");
14+
^
15+
16+
ReferenceError: console is not defined

0 commit comments

Comments
 (0)