added base Error object with some tweaks...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2020-12-18 19:17:19 +03:00
parent b53ecc5448
commit 3bfd570662
2 changed files with 17 additions and 1 deletions

View File

@ -267,6 +267,22 @@ function(base, obj, non_strict){
//---------------------------------------------------------------------
// Helper objects/constructors...
BOOTSTRAP(function(){
// Error with some JS quirks fixed...
//
module.Error =
Constructor('Error', Error, {
get name(){
return this.constructor.name },
})
})
//---------------------------------------------------------------------
// Prototype chain content access...

View File

@ -1,6 +1,6 @@
{
"name": "ig-object",
"version": "5.4.13",
"version": "5.4.14",
"description": "",
"main": "object.js",
"scripts": {