• bakkot's avatar
    add use counters for __defineGetter__ failing · b2ce1fa2
    bakkot authored
    We deviate from spec in that, in our implementation, __defineGetter__ on non-
    configurable properties returns false instead of throwing a TypeError. This commit
    adds a use counter to track how often we would be throwing an error we currently
    avoid, to determine if we can change to align with spec or if the spec is not
    implementable.
    
    BUG=v8:5070
    
    Review-Url: https://codereview.chromium.org/2089533002
    Cr-Commit-Position: refs/heads/master@{#37259}
    b2ce1fa2
test-usecounters.cc 2.65 KB