mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
PR-URL: https://github.com/nodejs/node/pull/18949 Fixes: https://github.com/nodejs/node/issues/18948 Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Guy Bedford <guybedford@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com> Reviewed-By: James M Snell <jasnell@gmail.com>
16 lines
340 B
JavaScript
16 lines
340 B
JavaScript
import { message } from './message';
|
|
|
|
var t = 1;
|
|
var k = 1;
|
|
console.log(message, 5);
|
|
while (t > 0) {
|
|
if (t++ === 1000) {
|
|
t = 0;
|
|
console.log(`Outputed message #${k++}`);
|
|
}
|
|
}
|
|
process.exit(55);
|
|
|
|
// test/parallel/test-inspector-esm.js expects t and k to be context-allocated.
|
|
(function force_context_allocation() { return t + k; })
|