0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/test/fixtures/inspector-global-function.js
Rich Trott c001ba6575 test: remove eslint-disable from fixtures
Fixture files are not linted. Remove `eslint-disable` comments from
fixture files.

PR-URL: https://github.com/nodejs/node/pull/23345
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
2018-10-08 20:01:07 -07:00

14 lines
244 B
JavaScript

'use strict';
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!');