ES6 object-literal __proto__ semantics have been implemented

Published: | Categories: JavaScript | Creative Commons BY-SA 3.0

Description

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.

References