mirror of
https://github.com/nodejs/node.git
synced 2025-05-07 00:42:10 +00:00

Attempting to check IsAlive() on a JSStream before the isAlive() callback can be set in JS causes a CHECK to fail in MakeCallback. Instead return false if the callback hasn't been set. PR-URL: https://github.com/nodejs/node/pull/3282 Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
9 lines
223 B
JavaScript
9 lines
223 B
JavaScript
'use strict';
|
|
|
|
const common = require('../common');
|
|
const util = require('util');
|
|
const JSStream = process.binding('js_stream').JSStream;
|
|
|
|
// Testing if will abort when properties are printed.
|
|
util.inspect(new JSStream());
|