Skip to content

Commit 507ca50

Browse files
committed
fix dev
1 parent bbfdf42 commit 507ca50

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/playground15/instrumentation.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ export function register() {
66
const timeout = setTimeout(() => {
77
console.log("This is a delayed log from the instrumentation register callback");
88
}, 0);
9-
// This is to test that we have access to the node version of setTimeout
10-
timeout.unref();
11-
clearTimeout(timeout);
129

1310
if (process.env.NEXT_RUNTIME === "nodejs") {
1411
globalThis["__NODEJS_INSTRUMENTATION_SETUP"] =
1512
"this value has been set by calling the instrumentation `register` callback in the nodejs runtime";
13+
// This is to test that we have access to the node version of setTimeout
14+
timeout.unref();
15+
clearTimeout(timeout);
1616
}
1717

1818
if (process.env.NEXT_RUNTIME === "edge") {

0 commit comments

Comments
 (0)