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

Unified Diff: test/dart_codegen/expect/core/int.dart

Issue 961493003: don't run dart gen on JS patch code (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/dart_codegen/expect/core/identical.dart ('k') | test/dart_codegen/expect/core/iterable.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/dart_codegen/expect/core/int.dart
diff --git a/test/dart_codegen/expect/core/int.dart b/test/dart_codegen/expect/core/int.dart
index f044dc86e71aa6624dd6b537d37fdf9784d0dbc5..f6b6e87263300426dbdda4b0c01a3a86932b3abe 100644
--- a/test/dart_codegen/expect/core/int.dart
+++ b/test/dart_codegen/expect/core/int.dart
@@ -1,10 +1,7 @@
part of dart.core;
abstract class int extends num {
- factory int.fromEnvironment(String name, {int defaultValue}) {
- throw new UnsupportedError(
- 'int.fromEnvironment can only be used as a const constructor');
- }
+ external const factory int.fromEnvironment(String name, {int defaultValue});
int operator &(int other);
int operator |(int other);
int operator ^(int other);
@@ -29,9 +26,6 @@ abstract class int extends num {
double truncateToDouble();
String toString();
String toRadixString(int radix);
- static int parse(String source, {int radix, int onError(String source)}) {
- return ((__x24) => DDC$RT.cast(__x24, dynamic, int, "CastGeneral",
- """line 281, column 12 of dart:core/int.dart: """, __x24 is int,
- true))(Primitives.parseInt(source, radix, onError));
- }
+ external static int parse(String source,
+ {int radix, int onError(String source)});
}
« no previous file with comments | « test/dart_codegen/expect/core/identical.dart ('k') | test/dart_codegen/expect/core/iterable.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698