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

Issue 350653002: Fix package relative imports (Closed)

Created:
6 years, 6 months ago by vsm
Modified:
6 years, 6 months ago
Reviewers:
ahe, Jacob
CC:
reviews+dom_dartlang.org
Visibility:
Public.

Description

Fix package relative imports We're subtly inconsistent with the spec (and the command-line VM and dart2js) on how we handle relative imports in packages. See referenced bug. BUG=http://dartbug.com/17662 R=ahe@google.com, jacobr@google.com Committed: https://src.chromium.org/viewvc/multivm/branches/1650/blink?view=rev&revision=176820

Patch Set 1 #

Total comments: 5

Patch Set 2 : Use strings #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -18 lines) Patch
M Source/bindings/dart/DartUtilities.cpp View 1 1 chunk +18 lines, -18 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
vsm
Peter: This fixes the 3 tests you marked fail. I'll send a corresponding CL for ...
6 years, 6 months ago (2014-06-23 07:31:09 UTC) #1
ahe
I'm not sure I'm really qualified to review this. But as far as I can ...
6 years, 6 months ago (2014-06-23 16:05:50 UTC) #2
Jacob
lgtm https://chromiumcodereview.appspot.com/350653002/diff/1/Source/bindings/dart/DartUtilities.cpp File Source/bindings/dart/DartUtilities.cpp (right): https://chromiumcodereview.appspot.com/350653002/diff/1/Source/bindings/dart/DartUtilities.cpp#newcode1111 Source/bindings/dart/DartUtilities.cpp:1111: // "package:<path>", we convert to "package://_/<path>" for resolution ...
6 years, 6 months ago (2014-06-23 16:42:27 UTC) #3
vsm
Committed patchset #2 manually as r176820 (presubmit successful).
6 years, 6 months ago (2014-06-24 07:16:02 UTC) #4
vsm
6 years, 6 months ago (2014-06-24 07:16:28 UTC) #5
Message was sent while issue was closed.
https://chromiumcodereview.appspot.com/350653002/diff/1/Source/bindings/dart/...
File Source/bindings/dart/DartUtilities.cpp (right):

https://chromiumcodereview.appspot.com/350653002/diff/1/Source/bindings/dart/...
Source/bindings/dart/DartUtilities.cpp:1111: // "package:<path>", we convert to
"package://_/<path>" for resolution and
On 2014/06/23 16:42:27, Jacob wrote:
> nit: keep commend at 80 chars.

Done.

https://chromiumcodereview.appspot.com/350653002/diff/1/Source/bindings/dart/...
Source/bindings/dart/DartUtilities.cpp:1115: DEFINE_STATIC_LOCAL(const int,
resolvePrefixLength, (strlen(resolvePrefix)));
On 2014/06/23 16:42:27, Jacob wrote:
> instead of defining static locals for the string and the length 
> consider
> DEFINE_STATIC_LOCAL(String, resolvePrefix, ("package://_/"))
> 
> getting the length from the string object should be O(1) as well and the code
> will be a bit more terse.

Done.

Powered by Google App Engine
This is Rietveld 408576698