node/test/fixtures/es-modules/loop.mjs
XhmikosR f114e5ba33 doc, lib, src, test, tools: fix assorted typos
PR-URL: https://github.com/nodejs/node/pull/29075
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
2019-08-12 16:00:22 -07:00

15 lines
345 B
JavaScript

import { message } from './message.mjs';
var t = 1;
var k = 1;
console.log(message, 5);
while (t > 0) {
if (t++ === 1000) {
t = 0;
console.log(`Outputted 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; })