mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
978629ca12
* remove inspector directory artifacts PR-URL: https://github.com/nodejs/node/pull/16197 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
14 lines
284 B
JavaScript
14 lines
284 B
JavaScript
'use strict'; // eslint-disable-line required-modules
|
|
let invocations = 0;
|
|
const interval = setInterval(() => {}, 1000);
|
|
|
|
global.sum = function() {
|
|
const a = 1;
|
|
const b = 2;
|
|
const c = a + b;
|
|
clearInterval(interval);
|
|
console.log(invocations++, c);
|
|
};
|
|
|
|
console.log('Ready!');
|