11cb0ef41Sopenharmony_ci// Flags: --expose-internals 21cb0ef41Sopenharmony_ci'use strict'; 31cb0ef41Sopenharmony_cirequire('../common'); 41cb0ef41Sopenharmony_ciconst assert = require('assert'); 51cb0ef41Sopenharmony_ciconst { internalBinding } = require('internal/test/binding'); 61cb0ef41Sopenharmony_ciconst { Signal } = internalBinding('signal_wrap'); 71cb0ef41Sopenharmony_ci 81cb0ef41Sopenharmony_ci// Test Signal `this` safety 91cb0ef41Sopenharmony_ci// https://github.com/joyent/node/issues/6690 101cb0ef41Sopenharmony_ciassert.throws(function() { 111cb0ef41Sopenharmony_ci const s = new Signal(); 121cb0ef41Sopenharmony_ci const nots = { start: s.start }; 131cb0ef41Sopenharmony_ci nots.start(9); 141cb0ef41Sopenharmony_ci}, /^TypeError: Illegal invocation$/); 15