Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
PostmanSandbox = function PostmanSandbox (options, callback) {
options = _.assign({}, options); // ensure options is an object and is shallow cloned
this.executing = {};
this.debug = Boolean(options.debug);
// set the dispatch timeout of UVM based on what is set in options unless original options sends the same
_.isFinite(options.timeout) && (options.dispatchTimeout = this.executionTimeout = options.timeout);
UniversalVM.call(this, options, function (err, context) {
if (err) { return callback(err); }
context.ping(function (err) {
callback(err, context);
context = null;
});
});
};