Index: pkg/compiler/lib/src/js_backend/constant_system_javascript.dart |
diff --git a/pkg/compiler/lib/src/js_backend/constant_system_javascript.dart b/pkg/compiler/lib/src/js_backend/constant_system_javascript.dart |
index f3d2b4c98e072432885e863e6fbecc5aaf57e05e..410d1c86bbb1fd8c2ac83fe00c8a00a78eb4e98b 100644 |
--- a/pkg/compiler/lib/src/js_backend/constant_system_javascript.dart |
+++ b/pkg/compiler/lib/src/js_backend/constant_system_javascript.dart |
@@ -349,11 +349,12 @@ class JavaScriptConstantSystem extends ConstantSystem { |
@override |
ConstantValue createSymbol(Compiler compiler, String text) { |
// TODO(johnniwinther): Create a backend agnostic value. |
- InterfaceType type = compiler.coreTypes.symbolType; |
+ JavaScriptBackend backend = compiler.backend; |
+ ClassElement symbolClass = backend.helpers.symbolImplementationClass; |
+ InterfaceType type = symbolClass.rawType; |
Siggi Cherem (dart-lang)
2016/05/26 19:52:15
shouldn't symbolClass.rawType and coreTypes.symbol
Johnni Winther
2016/05/27 08:51:24
It's worse. `coreTypes.symbolType` is the one defi
Siggi Cherem (dart-lang)
2016/05/27 17:27:08
yikes - should we change the patch file to directl
Johnni Winther
2016/05/30 07:58:23
I think we want to share the implementation betwee
|
ConstantValue argument = createString(new DartString.literal(text)); |
Map<FieldElement, ConstantValue> fields = <FieldElement, ConstantValue>{}; |
- JavaScriptBackend backend = compiler.backend; |
- backend.helpers.symbolImplementationClass.forEachInstanceField( |
+ symbolClass.forEachInstanceField( |
(ClassElement enclosingClass, FieldElement field) { |
fields[field] = argument; |
}); |