Descriptionv8binding: Implements an alternative of WindowProxy.[[DefineOwnProperty]].
Implements the following part of the spec with using indexed interceptor.
https://html.spec.whatwg.org/C/browsers.html#windowproxy-defineownproperty
step 2 - 1. If P is an array index property name, return false.
The spec's actual effect is mostly that author script cannot define
a property with an array index property name on a window object.
With this CL, the following ES code has no effect.
window[0] = 42;
Object.defineProperty(window, 0, {value: 42});
BUG=695385
Review-Url: https://codereview.chromium.org/2816743002
Cr-Commit-Position: refs/heads/master@{#464912}
Committed: https://chromium.googlesource.com/chromium/src/+/c105f1574d48e229385fbef9293aca66fc087f9b
Patch Set 1 #Patch Set 2 : Fixed tests. #
Total comments: 2
Messages
Total messages: 19 (13 generated)
|