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

Unified Diff: sdk/lib/_internal/compiler/implementation/lib/js_string.dart

Issue 11308257: - Parse the return type of JS during resolution to know what can be instantiated there. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years 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
Index: sdk/lib/_internal/compiler/implementation/lib/js_string.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/lib/js_string.dart (revision 15636)
+++ sdk/lib/_internal/compiler/implementation/lib/js_string.dart (working copy)
@@ -50,17 +50,17 @@
List<String> split(Pattern pattern) {
checkNull(pattern);
if (pattern is String) {
- return JS('JSArray', r'#.split(#)', this, pattern);
+ return JS('=List', r'#.split(#)', this, pattern);
} else if (pattern is JSSyntaxRegExp) {
var re = regExpGetNative(pattern);
- return JS('JSArray', r'#.split(#)', this, re);
+ return JS('=List', r'#.split(#)', this, re);
} else {
throw "String.split(Pattern) UNIMPLEMENTED";
}
}
List<String> splitChars() {
- return JS('JSArray', r'#.split("")', this);
+ return JS('=List', r'#.split("")', this);
}
bool startsWith(String other) {

Powered by Google App Engine
This is Rietveld 408576698