• franzih's avatar
    [api] Add interceptor for defineProperty(). · 7c401bd8
    franzih authored
    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
    Review-Url: https://codereview.chromium.org/2272383002
    Cr-Original-Commit-Position: refs/heads/master@{#39094}
    Cr-Commit-Position: refs/heads/master@{#39122}
    7c401bd8
api-arguments.h 7.37 KB