Details
-
Bug
-
Resolution: Fixed
-
P2
-
8
-
None
-
b108
-
generic
-
generic
-
Verified
Description
__proto__ used in an object literal is not supported. The following example
var obj = {__proto__: aProto, prop:999};
needs to be rewritten using Object.setPrototypeOf:
var obj = Object.setPrototypeOf({prop:999}, aProto);
This does impact some major node modules such as express.
var obj = {__proto__: aProto, prop:999};
needs to be rewritten using Object.setPrototypeOf:
var obj = Object.setPrototypeOf({prop:999}, aProto);
This does impact some major node modules such as express.