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

Issue 1145243013: Check for duplicate library names (Closed)

Created:
5 years, 6 months ago by vsm
Modified:
5 years, 6 months ago
Reviewers:
Jennifer Messerly
CC:
dev-compiler+reviews_dartlang.org
Base URL:
https://github.com/dart-lang/dev_compiler.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Check for duplicate library names This bites us on Angular - dart:collection and angular's collection (facade) lib smash on top of each other, silently causing issues. We'll need a better naming convention - perhaps we should use the lib name and require uniqueness. Fixes #208 R=jmesserly@google.com Committed: https://github.com/dart-lang/dev_compiler/commit/d6a456ad565dc40bbd0a17acea3c8607e460e962

Patch Set 1 #

Total comments: 13

Patch Set 2 : address comments #

Patch Set 3 : Rework with canonical names #

Total comments: 2

Patch Set 4 : Rebase and cleanup #

Total comments: 15

Patch Set 5 : Strip out the js extension from lib names #

Patch Set 6 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+394 lines, -274 lines) Patch
M lib/runtime/dart/_foreign_helper.js View 1 2 3 4 2 chunks +5 lines, -4 lines 0 comments Download
M lib/runtime/dart/_interceptors.js View 1 2 3 4 2 chunks +9 lines, -8 lines 0 comments Download
M lib/runtime/dart/_internal.js View 1 2 3 4 2 chunks +9 lines, -8 lines 0 comments Download
M lib/runtime/dart/_isolate_helper.js View 1 2 3 4 2 chunks +13 lines, -12 lines 0 comments Download
M lib/runtime/dart/_js_embedded_names.js View 1 2 3 4 2 chunks +4 lines, -3 lines 0 comments Download
M lib/runtime/dart/_js_helper.js View 1 2 3 4 2 chunks +8 lines, -7 lines 0 comments Download
M lib/runtime/dart/_js_primitives.js View 1 2 3 4 2 chunks +5 lines, -4 lines 0 comments Download
M lib/runtime/dart/_native_typed_data.js View 1 2 3 4 2 chunks +11 lines, -10 lines 0 comments Download
M lib/runtime/dart/async.js View 1 2 3 4 2 chunks +9 lines, -8 lines 0 comments Download
M lib/runtime/dart/collection.js View 1 2 3 4 2 chunks +8 lines, -7 lines 0 comments Download
M lib/runtime/dart/convert.js View 1 2 3 4 2 chunks +9 lines, -8 lines 0 comments Download
M lib/runtime/dart/core.js View 1 2 3 4 2 chunks +9 lines, -8 lines 0 comments Download
M lib/runtime/dart/isolate.js View 1 2 3 4 2 chunks +7 lines, -6 lines 0 comments Download
M lib/runtime/dart/math.js View 1 2 3 4 2 chunks +6 lines, -5 lines 0 comments Download
M lib/runtime/dart/typed_data.js View 1 2 3 4 2 chunks +6 lines, -5 lines 0 comments Download
M lib/runtime/dart_runtime.js View 1 2 3 4 5 7 chunks +82 lines, -23 lines 0 comments Download
M lib/src/codegen/html_codegen.dart View 1 2 3 4 3 chunks +4 lines, -4 lines 0 comments Download
M lib/src/codegen/js_codegen.dart View 1 2 3 4 6 chunks +45 lines, -26 lines 0 comments Download
M lib/src/dependency_graph.dart View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M test/browser/runtime_tests.js View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M test/codegen/expect/8invalid-chars.in+file_name.js View 1 2 3 4 1 chunk +4 lines, -3 lines 0 comments Download
M test/codegen/expect/BenchmarkBase.js View 1 2 3 4 2 chunks +5 lines, -4 lines 0 comments Download
M test/codegen/expect/DeltaBlue.js View 1 2 3 4 2 chunks +6 lines, -5 lines 0 comments Download
M test/codegen/expect/cascade.js View 1 2 3 4 2 chunks +5 lines, -4 lines 0 comments Download
M test/codegen/expect/constructors.js View 1 2 3 4 2 chunks +5 lines, -4 lines 0 comments Download
M test/codegen/expect/covariance.js View 1 2 3 4 2 chunks +5 lines, -4 lines 0 comments Download
M test/codegen/expect/dir/html_input_a.js View 1 2 3 4 2 chunks +8 lines, -7 lines 0 comments Download
M test/codegen/expect/dir/html_input_b.js View 1 2 3 4 1 chunk +4 lines, -3 lines 0 comments Download
M test/codegen/expect/dir/html_input_c.js View 1 2 3 4 2 chunks +5 lines, -4 lines 0 comments Download
M test/codegen/expect/dir/html_input_d.js View 1 2 3 4 2 chunks +5 lines, -4 lines 0 comments Download
M test/codegen/expect/dir/html_input_e.js View 1 2 3 4 1 chunk +4 lines, -3 lines 0 comments Download
M test/codegen/expect/domtest.js View 1 2 3 4 2 chunks +6 lines, -5 lines 0 comments Download
M test/codegen/expect/fieldtest.js View 1 2 3 4 2 chunks +5 lines, -4 lines 0 comments Download
M test/codegen/expect/functions.js View 1 2 3 4 2 chunks +5 lines, -4 lines 0 comments Download
M test/codegen/expect/html_input.html View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M test/codegen/expect/map_keys.js View 1 2 3 4 2 chunks +6 lines, -5 lines 0 comments Download
M test/codegen/expect/methods.js View 1 2 3 4 2 chunks +5 lines, -4 lines 0 comments Download
M test/codegen/expect/misc.js View 1 2 3 4 2 chunks +5 lines, -4 lines 0 comments Download
M test/codegen/expect/names.js View 1 2 3 4 2 chunks +5 lines, -4 lines 0 comments Download
M test/codegen/expect/opassign.js View 1 2 3 4 2 chunks +5 lines, -4 lines 0 comments Download
M test/codegen/expect/sunflower/circle.js View 1 2 3 4 2 chunks +5 lines, -4 lines 0 comments Download
M test/codegen/expect/sunflower/dom.js View 1 2 3 4 2 chunks +5 lines, -4 lines 0 comments Download
M test/codegen/expect/sunflower/painter.js View 1 2 3 4 2 chunks +8 lines, -7 lines 0 comments Download
M test/codegen/expect/sunflower/sunflower.html View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M test/codegen/expect/sunflower/sunflower.js View 1 2 3 4 2 chunks +9 lines, -8 lines 0 comments Download
M test/codegen/expect/temps.js View 1 2 3 4 2 chunks +5 lines, -4 lines 0 comments Download
M test/codegen/expect/try_catch.js View 1 2 3 4 2 chunks +5 lines, -4 lines 0 comments Download

Messages

Total messages: 13 (1 generated)
vsm
https://codereview.chromium.org/1145243013/diff/1/test/codegen/expect/sunflower/dom.js File test/codegen/expect/sunflower/dom.js (left): https://codereview.chromium.org/1145243013/diff/1/test/codegen/expect/sunflower/dom.js#oldcode1 test/codegen/expect/sunflower/dom.js:1: var dom = dart.defineLibrary(dom, window); Note, in the old ...
5 years, 6 months ago (2015-06-04 22:36:53 UTC) #2
Jennifer Messerly
Meta question ... we're doing a lot of runtime checks for imports, which is more ...
5 years, 6 months ago (2015-06-05 16:22:27 UTC) #3
vsm
On 2015/06/05 16:22:27, John Messerly wrote: > Meta question ... we're doing a lot of ...
5 years, 6 months ago (2015-06-05 17:00:51 UTC) #4
vsm
https://codereview.chromium.org/1145243013/diff/1/lib/runtime/dart/_foreign_helper.js File lib/runtime/dart/_foreign_helper.js (right): https://codereview.chromium.org/1145243013/diff/1/lib/runtime/dart/_foreign_helper.js#newcode159 lib/runtime/dart/_foreign_helper.js:159: })(_foreign_helper, core); On 2015/06/05 16:22:27, John Messerly wrote: > ...
5 years, 6 months ago (2015-06-05 17:01:04 UTC) #5
Jennifer Messerly
fyi, we chatted about this ... to summarize, what this is heading towards is an ...
5 years, 6 months ago (2015-06-05 20:33:32 UTC) #6
vsm
PTAL I'm thinking of dartifying the names - e.g., 'dart:core' instead of 'dart/core.js'. Thoughts? https://codereview.chromium.org/1145243013/diff/40001/lib/runtime/dart/_foreign_helper.js ...
5 years, 6 months ago (2015-06-05 22:04:39 UTC) #7
Jennifer Messerly
On 2015/06/05 22:04:39, vsm wrote: > PTAL > > I'm thinking of dartifying the names ...
5 years, 6 months ago (2015-06-05 22:25:51 UTC) #8
vsm
On 2015/06/05 22:25:51, John Messerly wrote: > On 2015/06/05 22:04:39, vsm wrote: > > PTAL ...
5 years, 6 months ago (2015-06-05 22:44:28 UTC) #9
Jennifer Messerly
very nice, lgtm. Just a few suggestions https://codereview.chromium.org/1145243013/diff/40001/lib/runtime/dart/_foreign_helper.js File lib/runtime/dart/_foreign_helper.js (right): https://codereview.chromium.org/1145243013/diff/40001/lib/runtime/dart/_foreign_helper.js#newcode1 lib/runtime/dart/_foreign_helper.js:1: dart.library('dart/_foreign_helper.js', null, ...
5 years, 6 months ago (2015-06-05 22:45:58 UTC) #10
vsm
Address comments
5 years, 6 months ago (2015-06-05 23:02:13 UTC) #11
vsm
Thanks - landing. I'll have a separate CL to deal with the out-of-order loading issues ...
5 years, 6 months ago (2015-06-05 23:03:11 UTC) #12
vsm
5 years, 6 months ago (2015-06-05 23:34:20 UTC) #13
Message was sent while issue was closed.
Committed patchset #6 (id:100001) manually as
d6a456ad565dc40bbd0a17acea3c8607e460e962 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698