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

Issue 469213009: Fix in compiler pass: cr.define() can export variable without assigned value (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@true_master
Project:
chromium
Visibility:
Public.

Description

Fix in compiler pass: cr.define() can export variable without assigned value BUG=393873 R=tbreisacher@chromium.org,dbeam@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=290712

Patch Set 1 #

Total comments: 6

Patch Set 2 : add test to show behavior on unexported variables #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -8 lines) Patch
M third_party/closure_compiler/runner/src/com/google/javascript/jscomp/ChromePass.java View 2 chunks +10 lines, -5 lines 0 comments Download
M third_party/closure_compiler/runner/test/com/google/javascript/jscomp/ChromePassTest.java View 1 5 chunks +58 lines, -3 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
Vitaly Pavlenko
6 years, 4 months ago (2014-08-15 22:33:08 UTC) #1
Tyler Breisacher (Chromium)
This is weird. Do you have an example of where code is actually doing this? ...
6 years, 4 months ago (2014-08-18 16:51:00 UTC) #2
Vitaly Pavlenko
On 2014/08/18 16:51:00, Tyler Breisacher (Chromium) wrote: > This is weird. Do you have an ...
6 years, 4 months ago (2014-08-18 17:14:05 UTC) #3
Tyler Breisacher (Chromium)
Interesting. The code does use 'bmm.tree' at line 166, but the local 'tree' var is ...
6 years, 4 months ago (2014-08-18 17:29:38 UTC) #4
Tyler Breisacher (Chromium)
lgtm
6 years, 4 months ago (2014-08-18 17:31:16 UTC) #5
Dan Beam
https://chromiumcodereview.appspot.com/469213009/diff/1/third_party/closure_compiler/runner/test/com/google/javascript/jscomp/ChromePassTest.java File third_party/closure_compiler/runner/test/com/google/javascript/jscomp/ChromePassTest.java (right): https://chromiumcodereview.appspot.com/469213009/diff/1/third_party/closure_compiler/runner/test/com/google/javascript/jscomp/ChromePassTest.java#newcode121 third_party/closure_compiler/runner/test/com/google/javascript/jscomp/ChromePassTest.java:121: " var a;" + so is this only change ...
6 years, 4 months ago (2014-08-18 18:36:46 UTC) #6
Dan Beam
https://chromiumcodereview.appspot.com/469213009/diff/1/third_party/closure_compiler/runner/test/com/google/javascript/jscomp/ChromePassTest.java File third_party/closure_compiler/runner/test/com/google/javascript/jscomp/ChromePassTest.java (right): https://chromiumcodereview.appspot.com/469213009/diff/1/third_party/closure_compiler/runner/test/com/google/javascript/jscomp/ChromePassTest.java#newcode121 third_party/closure_compiler/runner/test/com/google/javascript/jscomp/ChromePassTest.java:121: " var a;" + On 2014/08/18 18:36:46, Dan Beam ...
6 years, 4 months ago (2014-08-18 18:57:45 UTC) #7
Vitaly Pavlenko
On 2014/08/18 18:57:45, Dan Beam wrote: > https://chromiumcodereview.appspot.com/469213009/diff/1/third_party/closure_compiler/runner/test/com/google/javascript/jscomp/ChromePassTest.java > File > third_party/closure_compiler/runner/test/com/google/javascript/jscomp/ChromePassTest.java > (right): > ...
6 years, 4 months ago (2014-08-18 19:03:21 UTC) #8
Dan Beam
On 2014/08/18 19:03:21, Vitaly Pavlenko wrote: > On 2014/08/18 18:57:45, Dan Beam wrote: > > ...
6 years, 4 months ago (2014-08-18 19:05:58 UTC) #9
Vitaly Pavlenko
On 2014/08/18 19:05:58, Dan Beam wrote: > On 2014/08/18 19:03:21, Vitaly Pavlenko wrote: > > ...
6 years, 4 months ago (2014-08-19 20:43:09 UTC) #10
Dan Beam
lgtm https://chromiumcodereview.appspot.com/469213009/diff/1/third_party/closure_compiler/runner/test/com/google/javascript/jscomp/ChromePassTest.java File third_party/closure_compiler/runner/test/com/google/javascript/jscomp/ChromePassTest.java (right): https://chromiumcodereview.appspot.com/469213009/diff/1/third_party/closure_compiler/runner/test/com/google/javascript/jscomp/ChromePassTest.java#newcode107 third_party/closure_compiler/runner/test/com/google/javascript/jscomp/ChromePassTest.java:107: "});\n", On 2014/08/18 16:51:00, Tyler Breisacher (Chromium) wrote: ...
6 years, 4 months ago (2014-08-19 21:14:19 UTC) #11
Tyler Breisacher (Chromium)
https://chromiumcodereview.appspot.com/469213009/diff/1/third_party/closure_compiler/runner/test/com/google/javascript/jscomp/ChromePassTest.java File third_party/closure_compiler/runner/test/com/google/javascript/jscomp/ChromePassTest.java (right): https://chromiumcodereview.appspot.com/469213009/diff/1/third_party/closure_compiler/runner/test/com/google/javascript/jscomp/ChromePassTest.java#newcode107 third_party/closure_compiler/runner/test/com/google/javascript/jscomp/ChromePassTest.java:107: "});\n", On 2014/08/19 21:14:19, Dan Beam wrote: > where ...
6 years, 4 months ago (2014-08-19 21:19:48 UTC) #12
Dan Beam
https://chromiumcodereview.appspot.com/469213009/diff/1/third_party/closure_compiler/runner/test/com/google/javascript/jscomp/ChromePassTest.java File third_party/closure_compiler/runner/test/com/google/javascript/jscomp/ChromePassTest.java (right): https://chromiumcodereview.appspot.com/469213009/diff/1/third_party/closure_compiler/runner/test/com/google/javascript/jscomp/ChromePassTest.java#newcode107 third_party/closure_compiler/runner/test/com/google/javascript/jscomp/ChromePassTest.java:107: "});\n", On 2014/08/19 21:19:47, Tyler Breisacher (Chromium) wrote: > ...
6 years, 4 months ago (2014-08-19 21:42:09 UTC) #13
Vitaly Pavlenko
The CQ bit was checked by vitalyp@chromium.org
6 years, 4 months ago (2014-08-19 21:47:36 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vitalyp@chromium.org/469213009/20001
6 years, 4 months ago (2014-08-19 21:48:59 UTC) #15
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_tests_recipe on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-19 22:46:15 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-19 23:18:14 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_tests_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_tests_recipe/builds/469)
6 years, 4 months ago (2014-08-19 23:18:15 UTC) #18
Vitaly Pavlenko
The CQ bit was checked by vitalyp@chromium.org
6 years, 4 months ago (2014-08-19 23:21:21 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vitalyp@chromium.org/469213009/20001
6 years, 4 months ago (2014-08-19 23:23:21 UTC) #20
commit-bot: I haz the power
6 years, 4 months ago (2014-08-20 00:23:25 UTC) #21
Message was sent while issue was closed.
Committed patchset #2 (20001) as 290712

Powered by Google App Engine
This is Rietveld 408576698