blob: 4707b634dad48b252bf0761a9b0fde3bcfd52d89 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
var common = require('../common.js');
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);
|