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

Issue 9677019: Enable isolate tests with leg and legium. (Closed)

Created:
8 years, 9 months ago by ngeoffray
Modified:
8 years, 9 months ago
CC:
reviews_dartlang.org, floitsch, ahe, karlklose, Lasse Reichstein Nielsen
Visibility:
Public.

Description

Enable isolate tests with leg and legium. Committed: https://code.google.com/p/dart/source/detail?r=5411

Patch Set 1 #

Total comments: 9

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -62 lines) Patch
A + frog/leg/lib/uri_toremove.dart View 2 chunks +26 lines, -19 lines 0 comments Download
M lib/isolate/frog/isolateimpl.dart View 1 2 2 chunks +12 lines, -9 lines 0 comments Download
M lib/isolate/isolate_leg.dart View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M samples/tests/samples/samples-leg.status View 1 2 1 chunk +2 lines, -6 lines 0 comments Download
M tests/isolate/isolate.status View 1 2 3 chunks +2 lines, -5 lines 0 comments Download
M tests/isolate/isolate-leg.status View 1 2 1 chunk +11 lines, -21 lines 0 comments Download
M tests/language/language-leg.status View 1 2 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
ngeoffray
https://chromiumcodereview.appspot.com/9677019/diff/1/frog/leg/lib/uri_toremove.dart File frog/leg/lib/uri_toremove.dart (right): https://chromiumcodereview.appspot.com/9677019/diff/1/frog/leg/lib/uri_toremove.dart#newcode1 frog/leg/lib/uri_toremove.dart:1: // Copyright (c) 2012, the Dart project authors. Please ...
8 years, 9 months ago (2012-03-12 23:18:36 UTC) #1
Siggi Cherem (dart-lang)
https://chromiumcodereview.appspot.com/9677019/diff/1/lib/isolate/frog/isolateimpl.dart File lib/isolate/frog/isolateimpl.dart (right): https://chromiumcodereview.appspot.com/9677019/diff/1/lib/isolate/frog/isolateimpl.dart#newcode203 lib/isolate/frog/isolateimpl.dart:203: // Currently, none of the two Dart classes have ...
8 years, 9 months ago (2012-03-12 23:40:57 UTC) #2
ngeoffray
Thanks Siggi https://chromiumcodereview.appspot.com/9677019/diff/1/lib/isolate/frog/isolateimpl.dart File lib/isolate/frog/isolateimpl.dart (right): https://chromiumcodereview.appspot.com/9677019/diff/1/lib/isolate/frog/isolateimpl.dart#newcode203 lib/isolate/frog/isolateimpl.dart:203: // Currently, none of the two Dart ...
8 years, 9 months ago (2012-03-13 12:51:37 UTC) #3
kasperl
LGTM.
8 years, 9 months ago (2012-03-13 13:44:42 UTC) #4
Siggi Cherem (dart-lang)
https://chromiumcodereview.appspot.com/9677019/diff/1/lib/isolate/frog/isolateimpl.dart File lib/isolate/frog/isolateimpl.dart (right): https://chromiumcodereview.appspot.com/9677019/diff/1/lib/isolate/frog/isolateimpl.dart#newcode203 lib/isolate/frog/isolateimpl.dart:203: // Currently, none of the two Dart classes have ...
8 years, 9 months ago (2012-03-14 23:23:12 UTC) #5
ngeoffray
8 years, 9 months ago (2012-03-15 09:30:56 UTC) #6
https://chromiumcodereview.appspot.com/9677019/diff/1/lib/isolate/frog/isolat...
File lib/isolate/frog/isolateimpl.dart (right):

https://chromiumcodereview.appspot.com/9677019/diff/1/lib/isolate/frog/isolat...
lib/isolate/frog/isolateimpl.dart:203: // Currently, none of the two Dart
classes have subclasses.
On 2012/03/14 23:23:12, sigmund wrote:
> On 2012/03/13 12:51:37, ngeoffray wrote:
> > On 2012/03/12 23:40:58, sigmund wrote:
> > > On 2012/03/12 23:18:36, ngeoffray wrote:
> > > > This is more of a cleanup than a hack IMO. Siggi, Eli let me know what
you
> > > > think.
> > > 
> > > looks good to me. I'm working on adding Timer to corelib, which is
basically
> > > based on this. Hopefully then we can hide this code behind the Timer
> > interface. 
> > 
> > Sounds good.
> > 
> > > 
> > > I don't plan to implement Timer outside the browser, so we will still need
> to
> > > detect if it is available, for instance checking if new Timer(x, callback)
> > > throws an exception.
> > 
> > I don't understand: if you're adding something to the corelib, it ought to
be
> > available to both browser and standalone. Or are you saying that the actual
> > implementation of Timer in standalone will be implemented by someone else?
> 
> It would be supported standalone in the VM, but not when compiling with frog
to
> run in d8. In nodejs we had setTimeout available, but I haven't found
something
> equivalent for d8. I was leaning to say that in such case Timer is not
> available.

Oh I see. So I guess you want to throw a runtime exception by doing something
like:

class Timer {
   Timer() {
      if (JS_CODE("typeof window == 'undefined')) {
        throw 'Timer not supported';
      }
      ....
   }
}

Powered by Google App Engine
This is Rietveld 408576698