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

Issue 460163002: Handle property definition by {cr|Object}.defineProperty() in compiler pass (Closed)

Created:
6 years, 4 months ago by Vitaly Pavlenko
Modified:
6 years, 4 months ago
CC:
chromium-reviews, dbeam+watch-closure_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@C_compiler_pass
Project:
chromium
Visibility:
Public.

Description

Handle property definition by {cr|Object}.defineProperty() in compiler pass BUG=393873 R=dbeam@chromium.org,tbreisacher@chromium.org TEST=third_party/closure_compiler/runner/how_to_test_compiler_pass.md Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=289535

Patch Set 1 #

Total comments: 6

Patch Set 2 : fix issues spotted by Tyler, fix source line number on created nodes #

Patch Set 3 : more consistent join of string literals #

Patch Set 4 : add type policy for cr.PropertyKind to cr.js #

Patch Set 5 : define property on prototype, also minor nits #

Total comments: 6

Patch Set 6 : three more nits #

Patch Set 7 : rebase onto master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+207 lines, -103 lines) Patch
M third_party/closure_compiler/README.chromium View 1 1 chunk +2 lines, -1 line 0 comments Download
M third_party/closure_compiler/compiler_customization_test.py View 1 2 3 4 5 6 8 chunks +67 lines, -23 lines 0 comments Download
M third_party/closure_compiler/runner/src/com/google/javascript/jscomp/ChromePass.java View 1 2 3 4 5 6 10 chunks +84 lines, -79 lines 0 comments Download
M third_party/closure_compiler/runner/test/com/google/javascript/jscomp/ChromePassTest.java View 1 2 3 4 1 chunk +51 lines, -0 lines 0 comments Download
M ui/webui/resources/js/cr.js View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Vitaly Pavlenko
6 years, 4 months ago (2014-08-12 00:27:02 UTC) #1
Tyler Breisacher (Chromium)
lgtm https://codereview.chromium.org/460163002/diff/1/third_party/closure_compiler/runner/src/com/google/javascript/jscomp/ChromePass.java File third_party/closure_compiler/runner/src/com/google/javascript/jscomp/ChromePass.java (right): https://codereview.chromium.org/460163002/diff/1/third_party/closure_compiler/runner/src/com/google/javascript/jscomp/ChromePass.java#newcode59 third_party/closure_compiler/runner/src/com/google/javascript/jscomp/ChromePass.java:59: "Invalid cr.PropertyKind passed to cr.defineProperty(): expected ATTR, " ...
6 years, 4 months ago (2014-08-12 15:57:30 UTC) #2
Tyler Breisacher (Chromium)
https://codereview.chromium.org/460163002/diff/1/third_party/closure_compiler/runner/src/com/google/javascript/jscomp/ChromePass.java File third_party/closure_compiler/runner/src/com/google/javascript/jscomp/ChromePass.java (right): https://codereview.chromium.org/460163002/diff/1/third_party/closure_compiler/runner/src/com/google/javascript/jscomp/ChromePass.java#newcode111 third_party/closure_compiler/runner/src/com/google/javascript/jscomp/ChromePass.java:111: return new Node(Token.STAR); I was discussing this with dimvar@ ...
6 years, 4 months ago (2014-08-12 16:32:49 UTC) #3
Vitaly Pavlenko
I also have fixed source line number information as I got tons of misplaced errors ...
6 years, 4 months ago (2014-08-12 17:44:18 UTC) #4
Tyler Breisacher (Chromium)
> https://codereview.chromium.org/460163002/diff/1/third_party/closure_compiler/runner/src/com/google/javascript/jscomp/ChromePass.java#newcode60 > third_party/closure_compiler/runner/src/com/google/javascript/jscomp/ChromePass.java:60: > "BOOL_ATTR or JS, found \"{0}\"."); > On 2014/08/12 15:57:29, Tyler ...
6 years, 4 months ago (2014-08-12 17:49:28 UTC) #5
Vitaly Pavlenko
I have done some more changes in this CL: - switched to Google-style of string ...
6 years, 4 months ago (2014-08-13 20:28:36 UTC) #6
Tyler Breisacher (Chromium)
https://codereview.chromium.org/460163002/diff/80001/ui/webui/resources/js/cr.js File ui/webui/resources/js/cr.js (right): https://codereview.chromium.org/460163002/diff/80001/ui/webui/resources/js/cr.js#newcode78 ui/webui/resources/js/cr.js:78: * Use only for properties of any type. s/only ...
6 years, 4 months ago (2014-08-13 20:35:43 UTC) #7
Dan Beam
lgtm, but address tbreisacher's comments first https://codereview.chromium.org/460163002/diff/80001/third_party/closure_compiler/compiler_customization_test.py File third_party/closure_compiler/compiler_customization_test.py (right): https://codereview.chromium.org/460163002/diff/80001/third_party/closure_compiler/compiler_customization_test.py#newcode139 third_party/closure_compiler/compiler_customization_test.py:139: self._runCheckerTestExpectError(source_code=self._CR_DEFINE_DEFINITION + """ ...
6 years, 4 months ago (2014-08-13 20:41:29 UTC) #8
Vitaly Pavlenko
https://chromiumcodereview.appspot.com/460163002/diff/80001/third_party/closure_compiler/compiler_customization_test.py File third_party/closure_compiler/compiler_customization_test.py (right): https://chromiumcodereview.appspot.com/460163002/diff/80001/third_party/closure_compiler/compiler_customization_test.py#newcode139 third_party/closure_compiler/compiler_customization_test.py:139: self._runCheckerTestExpectError(source_code=self._CR_DEFINE_DEFINITION + """ On 2014/08/13 20:41:29, Dan Beam wrote: ...
6 years, 4 months ago (2014-08-13 21:12:04 UTC) #9
Vitaly Pavlenko
The CQ bit was checked by vitalyp@chromium.org
6 years, 4 months ago (2014-08-13 21:32:11 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vitalyp@chromium.org/460163002/100001
6 years, 4 months ago (2014-08-13 21:34:28 UTC) #11
Vitaly Pavlenko
The CQ bit was unchecked by vitalyp@chromium.org
6 years, 4 months ago (2014-08-13 22:26:40 UTC) #12
Vitaly Pavlenko
The CQ bit was checked by vitalyp@chromium.org
6 years, 4 months ago (2014-08-13 22:32:34 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vitalyp@chromium.org/460163002/120001
6 years, 4 months ago (2014-08-13 22:37:57 UTC) #14
commit-bot: I haz the power
6 years, 4 months ago (2014-08-14 12:33:22 UTC) #15
Message was sent while issue was closed.
Committed patchset #7 (120001) as 289535

Powered by Google App Engine
This is Rietveld 408576698