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

Issue 2501553002: [test] Add tests for definitions in object literal. (Closed)

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

Description

[test] Add tests for definitions in object literal. Properties can be defined inside the object literal (ES6) or after object creation. The behavior differes if there are accessors, interceptors or proxies in the Object prototype chain. These test cases assure we preserve correct behavior as we improve performance of definitions in literals. BUG=v8:5624 Committed: https://crrev.com/0188c3fba32809f71693fc169ab64db12de0956d Cr-Commit-Position: refs/heads/master@{#41024}

Patch Set 1 #

Patch Set 2 : [test] Add test for object literal definition with interceptors. #

Total comments: 1

Patch Set 3 : Move flag into namespace. #

Patch Set 4 : Do not intercept before Context::New() is done. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+104 lines, -0 lines) Patch
M test/cctest/test-api-interceptors.cc View 1 2 3 1 chunk +62 lines, -0 lines 0 comments Download
M test/mjsunit/object-literal.js View 1 chunk +42 lines, -0 lines 0 comments Download

Messages

Total messages: 46 (40 generated)
Franzi
Hi Benedikt, I added tests to make sure we treat definitions inside object literals correct ...
4 years, 1 month ago (2016-11-14 12:11:45 UTC) #4
Benedikt Meurer
https://codereview.chromium.org/2501553002/diff/20001/test/cctest/test-api-interceptors.cc File test/cctest/test-api-interceptors.cc (right): https://codereview.chromium.org/2501553002/diff/20001/test/cctest/test-api-interceptors.cc#newcode659 test/cctest/test-api-interceptors.cc:659: bool getter_callback_was_called = false; Nit: Move this into the ...
4 years, 1 month ago (2016-11-14 12:12:49 UTC) #5
Benedikt Meurer
LGTM once nits addressed.
4 years, 1 month ago (2016-11-14 12:12:58 UTC) #6
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/2501553002/200001
4 years, 1 month ago (2016-11-16 10:57:40 UTC) #43
commit-bot: I haz the power
Committed patchset #4 (id:200001)
4 years, 1 month ago (2016-11-16 10:59:59 UTC) #44
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 22:35:46 UTC) #46
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/0188c3fba32809f71693fc169ab64db12de0956d
Cr-Commit-Position: refs/heads/master@{#41024}

Powered by Google App Engine
This is Rietveld 408576698