summaryrefslogtreecommitdiff
path: root/test/fixtures/inspector-global-function.js
blob: d72bacd7ca9b36db9b1f3f81d29a3b71b9963b41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
'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!');