Random fixes discovered when looking through CL 11824035.

Review URL: https://codereview.chromium.org//11817028

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16878 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
floitsch@google.com
2013-01-09 20:17:34 +00:00
parent 2537d8d255
commit ee7bedd1b2
3 changed files with 2 additions and 3 deletions
@@ -629,7 +629,7 @@ abstract class Compiler implements DiagnosticListener {
if (libraryName == 'dart:isolate'
|| libraryName == 'dart:html'
// TODO(floitsch): create a separate async-helper library instead of
// importing the isolate-library just for async.
// importing the isolate-library just for TimerImpl.
|| libraryName == 'dart:async') {
importIsolateHelperLibrary(library);
}
@@ -101,7 +101,7 @@ main() {
regexp = new RegExp(r"a = 2;");
Iterator matches = regexp.allMatches(generated).iterator;
Expect.isTrue(matches.moveNext());
Expect.isFalse(matches.moveNext);
Expect.isFalse(matches.moveNext());
generated = compile(PARAMETER_INIT, entry: 'foo');
regexp = new RegExp("var result = start;");
@@ -4,7 +4,6 @@
// Test basic integer operations.
main() {
// TODO(floitsch): verify that returned exception is correct type.
Expect.throws(() => (1.0).toStringAsExponential(-1),
(e) => e is RangeError);
Expect.throws(() => (1.0).toStringAsExponential(21),