mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
c001ba6575
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>
14 lines
244 B
JavaScript
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!');
|