Sha256: 794cf13fb367e9a1c42eb0991944c5e1365881a7bd63db278c17f15b0dc07089
Contents?: true
Size: 416 Bytes
Versions: 29
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
29 entries across 19 versions & 7 rubygems