Expand Minimize

SPC058910: __proto__ is a reserved word

The __proto__ property is not implemented in all browsers

CheckId SPC058910
TypeName NoProto
Severity CriticalError
Type JavaScriptFile

var a = obj.__proto__;
var a = obj['__proto__'];

Good Practice
var a = Object.getPrototypeOf(obj);

Disclaimer: The views and opinions expressed in this documentation and in SPCAF do not necessarily reflect the opinions and recommendations of Microsoft or any member of Microsoft. SPCAF and RENCORE are registered trademarks of Rencore. All other trademarks, service marks, collective marks, copyrights, registered names, and marks used or cited by this documentation are the property of their respective owners.