commented out legacy (?) code...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2020-11-19 16:47:44 +03:00
parent 6b8e46d302
commit 339dc14c9f
2 changed files with 3 additions and 1 deletions

View File

@ -891,6 +891,7 @@ function Constructor(name, a, b, c){
return obj }
Object.defineProperty(_constructor, 'name', { value: name })
/*/ XXX is this still needed???
// just in case the browser/node refuses to change the name, we'll make
// it a different offer ;)
_constructor.name == 'Constructor'
@ -900,6 +901,7 @@ function Constructor(name, a, b, c){
&& eval('_constructor = '+ _constructor
.toString()
.replace(/Constructor/g, name))
//*/
// set .toString(..)...
// NOTE: do this only if .toString(..) is not defined by user...
// XXX revise this test...

View File

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