Lines Matching defs:options

93     send(message, handle, options) {
105 send(message, server, options) {
118 send(message, socket, options) {
136 if (!options.keepOpen)
144 if (!options.keepOpen) {
166 postSend(message, handle, options, callback, target) {
170 if (handle && !options.keepOpen) {
177 { callback, message, handle, options, retransmissions: 0 };
208 send(message, handle, options) {
220 send(message, socket, options) {
237 const options = [];
242 case 'pipe': ArrayPrototypePush(options, stdio, stdio, stdio); break;
243 case 'inherit': ArrayPrototypePush(options, 0, 1, 2); break;
248 if (channel) ArrayPrototypePush(options, channel);
250 return options;
348 ChildProcess.prototype.spawn = function(options) {
351 validateObject(options, 'options');
354 let stdio = options.stdio || 'pipe';
360 stdio = options.stdio = stdio.stdio;
363 validateOneOf(options.serialization, 'options.serialization',
365 const serialization = options.serialization || 'json';
369 if (options.envPairs === undefined)
370 options.envPairs = [];
372 validateArray(options.envPairs, 'options.envPairs');
374 ArrayPrototypePush(options.envPairs, `NODE_CHANNEL_FD=${ipcFd}`);
375 ArrayPrototypePush(options.envPairs,
379 validateString(options.file, 'options.file');
380 this.spawnfile = options.file;
382 if (options.args === undefined) {
385 validateArray(options.args, 'options.args');
386 this.spawnargs = options.args;
389 const err = this._handle.spawn(options);
669 target._pendingMessage.options,
675 target._send(args.message, args.handle, args.options, args.callback);
730 target.send = function(message, handle, options, callback) {
734 options = undefined;
735 } else if (typeof options === 'function') {
736 callback = options;
737 options = undefined;
738 } else if (options !== undefined) {
739 validateObject(options, 'options');
742 options = { swallowErrors: false, ...options };
745 return this._send(message, handle, options, callback);
756 target._send = function(message, handle, options, callback) {
775 if (typeof options === 'boolean') {
776 options = { swallowErrors: options };
809 options: options,
819 target, [message, handle, options]);
837 options: options,
853 obj.postSend(message, handle, options, callback, target);
869 obj.postSend(message, handle, options, callback);
871 if (!options.swallowErrors) {
1102 function spawnSync(options) {
1103 const result = spawn_sync.spawn(options);
1105 if (result.output && options.encoding && options.encoding !== 'buffer') {
1109 result.output[i] = result.output[i].toString(options.encoding);
1117 result.error = errnoException(result.error, 'spawnSync ' + options.file);
1118 result.error.path = options.file;
1119 result.error.spawnargs = ArrayPrototypeSlice(options.args, 1);