mirror of
https://github.com/flynx/object.js.git
synced 2025-10-29 10:30:08 +00:00
mixed a minor bug...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
9d31f9f985
commit
1b42aa4b19
@ -188,8 +188,7 @@ function makeConstructor(name, a, b){
|
||||
|
||||
// set an informative .toString...
|
||||
// NOTE: do this only if .toString(..) is not defined by user...
|
||||
if(cls_proto
|
||||
&& cls_proto.toString() == ({}).toString()){
|
||||
if((cls_proto || {}).toString() == ({}).toString()){
|
||||
// XXX is this the right way to go or should we set this openly???
|
||||
Object.defineProperty(_constructor, 'toString', {
|
||||
value: function(){
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ig-object",
|
||||
"version": "1.0.5",
|
||||
"version": "1.0.6",
|
||||
"description": "",
|
||||
"main": "object.js",
|
||||
"scripts": {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user