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

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