summaryrefslogtreecommitdiff
path: root/test/parallel/test-handle-wrap-close-abort.js
blob: 8572668f6668641e6f22766deb43c99ca9b7ffb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
'use strict';
require('../common');

process.on('uncaughtException', function() { });

setTimeout(function() {
  process.nextTick(function() {
    var c = setInterval(function() {
      clearInterval(c);
      throw new Error('setInterval');
    });
  });
  setTimeout(function() {
    throw new Error('setTimeout');
  });
});