mirror of
https://github.com/mgerb/mywebsite
synced 2026-01-12 02:42:48 +00:00
updated bunch of file paths and changed the way posts are loaded
This commit is contained in:
12
node_modules/es5-ext/test/error/custom.js
generated
vendored
Normal file
12
node_modules/es5-ext/test/error/custom.js
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = function (t, a) {
|
||||
var T = t, err = new T('My Error', 'MY_ERROR', { errno: 123 });
|
||||
a(err instanceof Error, true, "Instance of error");
|
||||
a(err.constructor, Error, "Constructor");
|
||||
a(err.name, 'Error', "Name");
|
||||
a(String(err), 'Error: My Error', "String representation");
|
||||
a(err.code, 'MY_ERROR', "Code");
|
||||
a(err.errno, 123, "Errno");
|
||||
a(typeof err.stack, 'string', "Stack trace");
|
||||
};
|
||||
Reference in New Issue
Block a user