• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1'use strict';
2let invocations = 0;
3const interval = setInterval(() => {}, 1000);
4
5global.sum = function() {
6  const a = 1;
7  const b = 2;
8  const c = a + b;
9  clearInterval(interval);
10  console.log(invocations++, c);
11};
12
13// NOTE(mmarchini): Calls console.log two times to ensure we loaded every
14// internal module before pausing. See
15// https://bugs.chromium.org/p/v8/issues/detail?id=10287.
16console.log('Loading');
17console.log('Ready!');
18