[#25] Added attachInstanceOf TODO
parent
08cb663833
commit
91332353e9
|
@ -1065,6 +1065,9 @@ function attachInstanceOf( instance )
|
|||
return module.exports.isInstanceOf( type, instance );
|
||||
};
|
||||
|
||||
// TODO: To improve performance (defineSecureProp can be costly), simply
|
||||
// define a normal prop and freeze the class afterward. The class shouldn't
|
||||
// have any mutable methods.
|
||||
util.defineSecureProp( instance, 'isInstanceOf', method );
|
||||
util.defineSecureProp( instance, 'isA', method );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue