summaryrefslogtreecommitdiff
path: root/test/parallel/test-signal-safety.js
blob: 34722b712f8889525d763c9b9216b3629e54f470 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
'use strict';
require('../common');
const assert = require('assert');
const Signal = process.binding('signal_wrap').Signal;

// Test Signal `this` safety
// https://github.com/joyent/node/issues/6690
assert.throws(function() {
  const s = new Signal();
  const nots = { start: s.start };
  nots.start(9);
}, TypeError);