ES6 object-literal __proto__ semantics have been implemented

Published: | Categories: JavaScript


ECMAScript 6 semantics and restrictions for prototype mutations in object literals have been implemented. Now only a single prototype mutation is allowed in an object literal with a __proto__; multiple mutation raises a SyntaxError. Also, method members like __proto__() {} will not override the prototype anymore.