]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/node_modules/node-gyp/node_modules/path-array/node_modules/array-index/node_modules/es6-symbol/node_modules/es5-ext/test/error/custom.js
Adding integrated tile server
[simantics/district.git] / org.simantics.maps.server / node / node-v4.8.0-win-x64 / node_modules / npm / node_modules / node-gyp / node_modules / path-array / node_modules / array-index / node_modules / es6-symbol / node_modules / es5-ext / test / error / custom.js
1 'use strict';
2
3 module.exports = function (t, a) {
4         var T = t, err = new T('My Error', 'MY_ERROR', { errno: 123 });
5         a(err instanceof Error, true, "Instance of error");
6         a(err.constructor, Error, "Constructor");
7         a(err.name, 'Error', "Name");
8         a(String(err), 'Error: My Error', "String representation");
9         a(err.code, 'MY_ERROR', "Code");
10         a(err.errno, 123, "Errno");
11         a(typeof err.stack, 'string', "Stack trace");
12 };