Index: sdk/lib/_internal/compiler/implementation/native_handler.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/native_handler.dart b/sdk/lib/_internal/compiler/implementation/native_handler.dart |
index 0ba42aea08f475ea08ac938302867d44a04d2ed6..8d6b9eb585cec27c48329bbd49ad5c88ea27713e 100644 |
--- a/sdk/lib/_internal/compiler/implementation/native_handler.dart |
+++ b/sdk/lib/_internal/compiler/implementation/native_handler.dart |
@@ -211,7 +211,7 @@ void handleSsaNative(SsaBuilder builder, Expression nativeBody) { |
// 1) foo() native; hasBody = false, isRedirecting = false |
// 2) foo() native "bar"; hasBody = false, isRedirecting = true |
// 3) foo() native "return 42"; hasBody = true, isRedirecting = false |
- RegExp nativeRedirectionRegExp = const RegExp(r'^[a-zA-Z][a-zA-Z_$0-9]*$'); |
+ RegExp nativeRedirectionRegExp = new RegExp(r'^[a-zA-Z][a-zA-Z_$0-9]*$'); |
ahe
2012/11/12 13:35:03
Top-level final field?
Anders Johnsen
2012/11/12 13:45:38
Done.
|
bool hasBody = false; |
bool isRedirecting = false; |
String nativeMethodName = element.name.slowToString(); |