Sha256: 85538531c0fd1f6434638632e5f53abd0c0bde0e9bc55fda18c6684c03bd9212

Contents?: true

Size: 497 Bytes

Versions: 2

Compression:

Stored size: 497 Bytes

Contents

'use strict';

var assign = require('../object/assign')

  , captureStackTrace = Error.captureStackTrace;

exports = module.exports = function (message/*, code, ext*/) {
	var err = new Error(message), code = arguments[1], ext = arguments[2];
	if (ext == null) {
		if (code && (typeof code === 'object')) {
			ext = code;
			code = null;
		}
	}
	if (ext != null) assign(err, ext);
	if (code != null) err.code = String(code);
	if (captureStackTrace) captureStackTrace(err, exports);
	return err;
};

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
guard-sass-lint-0.1.2 node_modules/es5-ext/error/custom.js
guard-sass-lint-0.1.1 node_modules/es5-ext/error/custom.js