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