Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(421)

Issue 2582493002: [runtime] Throw if attempting to re-declaring an accessor. (Closed)

Created:
4 years ago by Franzi
Modified:
4 years ago
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[runtime] Throw if re-declaring a non-configurable accessor. If an accessor property is non-configurable, one should not be able to re-declare it as a function. This specifically applies to special properties like window.location. BUG=chromium:670596 Review-Url: https://codereview.chromium.org/2582493002 Cr-Commit-Position: refs/heads/master@{#41725} Committed: https://chromium.googlesource.com/v8/v8/+/0e7a2ca0d75fad836435b0836ccc13c2b128e2f3

Patch Set 1 #

Patch Set 2 : Add test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -2 lines) Patch
M src/runtime/runtime-scopes.cc View 1 chunk +1 line, -2 lines 0 comments Download
M test/cctest/test-api-accessors.cc View 1 1 chunk +30 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (11 generated)
Franzi
Hi, please take a look. Thanks, Franzi
4 years ago (2016-12-15 14:13:21 UTC) #9
jochen (gone - plz use gerrit)
lgtm
4 years ago (2016-12-15 14:14:42 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2582493002/40001
4 years ago (2016-12-15 14:15:32 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:40001) as https://chromium.googlesource.com/v8/v8/+/0e7a2ca0d75fad836435b0836ccc13c2b128e2f3
4 years ago (2016-12-15 14:41:11 UTC) #15
Yuki
4 years ago (2016-12-16 06:37:01 UTC) #16
Message was sent while issue was closed.
I don't know details of V8 implementation, but rs-lgtm.  Thanks for fixing this.

Powered by Google App Engine
This is Rietveld 408576698