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 2495383003: Add implementation of Isolate.resolvePackageUri for dart2js. (Closed)

Created:
4 years, 1 month ago by Siggi Cherem (dart-lang)
Modified:
4 years, 1 month ago
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Add implementation of Isolate.resolvePackageUri for dart2js. This uses 'packages/' as the default base to resolve uris from, but also exposes a hook to allow users to overwrite it. BUG= https://github.com/dart-lang/sdk/issues/25594 R=het@google.com, lrn@google.com Committed: https://github.com/dart-lang/sdk/commit/f460a8706d116515a921334f8bbe09542285eb77

Patch Set 1 #

Total comments: 12

Patch Set 2 : cl comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -2 lines) Patch
M pkg/compiler/lib/src/js_emitter/headers.dart View 1 chunk +4 lines, -0 lines 0 comments Download
M sdk/lib/_internal/js_runtime/lib/isolate_helper.dart View 1 1 chunk +8 lines, -0 lines 0 comments Download
M sdk/lib/_internal/js_runtime/lib/isolate_patch.dart View 1 1 chunk +5 lines, -2 lines 0 comments Download
A tests/isolate/browser/package_resolve_browser_hook2_test.dart View 1 1 chunk +28 lines, -0 lines 0 comments Download
A tests/isolate/browser/package_resolve_browser_hook_test.dart View 1 1 chunk +16 lines, -0 lines 0 comments Download
A tests/isolate/browser/package_resolve_browser_hook_test.html View 1 1 chunk +25 lines, -0 lines 0 comments Download
A tests/isolate/browser/package_resolve_browser_test.dart View 1 1 chunk +16 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (5 generated)
Siggi Cherem (dart-lang)
4 years, 1 month ago (2016-11-14 19:36:49 UTC) #4
Lasse Reichstein Nielsen
lgtm https://codereview.chromium.org/2495383003/diff/20001/sdk/lib/_internal/js_runtime/lib/isolate_helper.dart File sdk/lib/_internal/js_runtime/lib/isolate_helper.dart (right): https://codereview.chromium.org/2495383003/diff/20001/sdk/lib/_internal/js_runtime/lib/isolate_helper.dart#newcode756 sdk/lib/_internal/js_runtime/lib/isolate_helper.dart:756: /// This is indirectly used by `package:resource` to ...
4 years, 1 month ago (2016-11-14 20:42:35 UTC) #5
Lasse Reichstein Nielsen
https://codereview.chromium.org/2495383003/diff/20001/sdk/lib/_internal/js_runtime/lib/isolate_patch.dart File sdk/lib/_internal/js_runtime/lib/isolate_patch.dart (right): https://codereview.chromium.org/2495383003/diff/20001/sdk/lib/_internal/js_runtime/lib/isolate_patch.dart#newcode37 sdk/lib/_internal/js_runtime/lib/isolate_patch.dart:37: return Uri.base.resolve('$base/${packageUri.path}'); Actually, it can probably just be: Uri.base.resolve("$base/").resolveUri(packageUri.replace(scheme: ...
4 years, 1 month ago (2016-11-14 20:46:23 UTC) #6
Harry Terkelsen
lgtm https://codereview.chromium.org/2495383003/diff/20001/tests/isolate/browser/package_resolve_browser_hook_test.dart File tests/isolate/browser/package_resolve_browser_hook_test.dart (right): https://codereview.chromium.org/2495383003/diff/20001/tests/isolate/browser/package_resolve_browser_hook_test.dart#newcode12 tests/isolate/browser/package_resolve_browser_hook_test.dart:12: expect(uri, Uri.base.resolve('path_set_from_hook/foo/bar.txt')); can we also test if the ...
4 years, 1 month ago (2016-11-14 22:27:24 UTC) #7
Siggi Cherem (dart-lang)
thanks Lasse and Harry! https://codereview.chromium.org/2495383003/diff/20001/sdk/lib/_internal/js_runtime/lib/isolate_helper.dart File sdk/lib/_internal/js_runtime/lib/isolate_helper.dart (right): https://codereview.chromium.org/2495383003/diff/20001/sdk/lib/_internal/js_runtime/lib/isolate_helper.dart#newcode756 sdk/lib/_internal/js_runtime/lib/isolate_helper.dart:756: /// This is indirectly used ...
4 years, 1 month ago (2016-11-14 23:07:15 UTC) #9
Siggi Cherem (dart-lang)
4 years, 1 month ago (2016-11-14 23:11:56 UTC) #11
Message was sent while issue was closed.
Committed patchset #2 (id:60001) manually as
f460a8706d116515a921334f8bbe09542285eb77 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698