Description[api] Add interceptor for defineProperty().
With the Indexed/GenericNamedPropertyDefinerCallback it is possible to intercept Object.defineProperty() calls.
Requests that call JSReceiver::OrdinaryDefineOwnProperty() internally, also trigger the interceptor. This includes Object.freeze(), Object.preventExtensions(), and Object.seal().
As without this patch, the query interceptor triggers on
defineProperty, unless the definer callback
intercepts the request.
As without this patch, the query interceptor triggers on defineProperty, unless the definer callback intercepts the request.
BUG=
Committed: https://crrev.com/b9d985975cf3bab0ded0cec9fafd3799f9bde29a
Committed: https://crrev.com/7c401bd84cbd71a0dcdce01031875a7b90471ffb
Cr-Original-Commit-Position: refs/heads/master@{#39094}
Cr-Commit-Position: refs/heads/master@{#39122}
Patch Set 1 #Patch Set 2 : Fix bugs with enumerable/configurable and callable. #Patch Set 3 : Add test for intercepting Object.freeze(). #
Total comments: 6
Patch Set 4 : Rename propDescriptor variable. #Patch Set 5 : Fix getter and setter, they can be undefined. #Patch Set 6 : Inline function. #Patch Set 7 : Fix bug with IndexedDefinerCallback. #Patch Set 8 : Cover enumerable/configurable in test. #Patch Set 9 : Rebase, descriptor is now mutable. #Patch Set 10 : Rebase. #Patch Set 11 : Query descriptor triggers on defineProperty(). #
Depends on Patchset: Dependent Patchsets: Messages
Total messages: 52 (39 generated)
|