summaryrefslogtreecommitdiff
path: root/tests/node_compat/test/fixtures/loop.js
blob: aad83d0f67ecce22bc7fc6dfb45351c7e7bf5d06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// deno-fmt-ignore-file
// deno-lint-ignore-file

// Copyright Joyent and Node contributors. All rights reserved. MIT license.
// Taken from Node 18.12.1
// This file is automatically generated by `tests/node_compat/runner/setup.ts`. Do not modify this file manually.

var t = 1;
var k = 1;
console.log('A message', 5);
while (t > 0) {
  if (t++ === 1000) {
    t = 0;
    console.log(`Outputted message #${k++}`);
  }
}
process.exit(55);