Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Normative: Make Object.prototype an Immutable Prototype Exotic Object
This patch builds a mechanism to fix the Proxy security issue documented in bug #272 by locking down the prototype chain of the global object, as Firefox has experimented with. Although the global object is provided by the embedding environment, many embedding environments will include Object in the prototype chain; preventing modification of Object.prototype addresses the issue by making it impossible to insert a Proxy in that part of the prototype chain of the global object. Embedding environments that want to prohibit a Proxy from being in the proto chain of their global object can make their global object and associated proto chain Immutable Prototype exotic objects. Fixes #308. Fixes #272. This commit includes changes on top of the commit in #308 based on the discussion therein.
- Loading branch information