Current Folder
This commit is contained in:
1 parent
8b3382289b
commit
cfcada880d
4379 files changed
No files matched your search
-12
@@ -1,12 +0,0 @@
|
||||
"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