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

Issue 15967012: Make pathos run in the browser. (Closed)

Created:
7 years, 6 months ago by nweiz
Modified:
7 years, 6 months ago
Reviewers:
Bob Nystrom
CC:
reviews_dartlang.org, ahe
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : Bug fix. #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+240 lines, -87 lines) Patch
M pkg/pathos/README.md View 9 chunks +63 lines, -20 lines 0 comments Download
M pkg/pathos/lib/path.dart View 1 8 chunks +74 lines, -4 lines 5 comments Download
A pkg/pathos/test/pathos_dart2js_test.dart View 1 chunk +27 lines, -0 lines 0 comments Download
A pkg/pathos/test/pathos_dartium_test.dart View 1 chunk +26 lines, -0 lines 0 comments Download
A + pkg/pathos/test/pathos_io_test.dart View 1 chunk +1 line, -30 lines 0 comments Download
M pkg/pathos/test/pathos_posix_test.dart View 1 3 chunks +12 lines, -2 lines 0 comments Download
M pkg/pathos/test/pathos_test.dart View 2 chunks +0 lines, -22 lines 0 comments Download
M pkg/pathos/test/pathos_url_test.dart View 1 3 chunks +19 lines, -2 lines 0 comments Download
M pkg/pathos/test/pathos_windows_test.dart View 1 3 chunks +12 lines, -2 lines 0 comments Download
M pkg/pkg.status View 4 chunks +6 lines, -5 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
nweiz
I know working around the lack of configuration-specific libraries using mirrors squicks you out, but ...
7 years, 6 months ago (2013-06-12 00:28:39 UTC) #1
Bob Nystrom
Kind of strange, but LGTM I guess.
7 years, 6 months ago (2013-06-12 19:55:36 UTC) #2
nweiz
Committed patchset #2 manually as r23929 (presubmit successful).
7 years, 6 months ago (2013-06-12 20:13:17 UTC) #3
ahe
DBC https://codereview.chromium.org/15967012/diff/2001/pkg/pathos/lib/path.dart File pkg/pathos/lib/path.dart (right): https://codereview.chromium.org/15967012/diff/2001/pkg/pathos/lib/path.dart#newcode43 pkg/pathos/lib/path.dart:43: return currentMirrorSystem().libraries[Uri.parse('dart:io')]; You shouldn't need to wrap this ...
7 years, 6 months ago (2013-06-12 21:47:52 UTC) #4
ahe
FWIW, long term, this should work well in dart2js, and the generated code shouldn't blow ...
7 years, 6 months ago (2013-06-12 21:52:03 UTC) #5
nweiz
https://codereview.chromium.org/15967012/diff/2001/pkg/pathos/lib/path.dart File pkg/pathos/lib/path.dart (right): https://codereview.chromium.org/15967012/diff/2001/pkg/pathos/lib/path.dart#newcode43 pkg/pathos/lib/path.dart:43: return currentMirrorSystem().libraries[Uri.parse('dart:io')]; On 2013/06/12 21:47:52, ahe wrote: > You ...
7 years, 6 months ago (2013-06-12 22:20:08 UTC) #6
ahe
7 years, 6 months ago (2013-06-12 22:24:57 UTC) #7
Message was sent while issue was closed.
https://codereview.chromium.org/15967012/diff/2001/pkg/pathos/lib/path.dart
File pkg/pathos/lib/path.dart (right):

https://codereview.chromium.org/15967012/diff/2001/pkg/pathos/lib/path.dart#n...
pkg/pathos/lib/path.dart:43: return
currentMirrorSystem().libraries[Uri.parse('dart:io')];
On 2013/06/12 22:20:08, nweiz wrote:
> On 2013/06/12 21:47:52, ahe wrote:
> > You shouldn't need to wrap this in a catch block.  It's just a plain map
that
> > should return null if the key isn't there.
> 
> At least when I wrote this, dart2js's MirrorSystem implementation didn't
expose
> a [libraries] getter at all.

Doh!  I'll add that.  I have focused on adding what was needed to get existing
tests running, and it seems like LibraryMirror.libraries is completely untested
:-(

Powered by Google App Engine
This is Rietveld 408576698