Sha256: 9af6906d25ab87c5bfe8cc1deb51013a8272ec9fdf18a1dafd3222814b5d4f28
Contents?: true
Size: 416 Bytes
Versions: 47
Compression:
Stored size: 416 Bytes
Contents
"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"); };
Version data entries
47 entries across 47 versions & 3 rubygems