| Index: sdk/lib/_internal/compiler/implementation/js_backend/constant_emitter.dart
|
| ===================================================================
|
| --- sdk/lib/_internal/compiler/implementation/js_backend/constant_emitter.dart (revision 26873)
|
| +++ sdk/lib/_internal/compiler/implementation/js_backend/constant_emitter.dart (working copy)
|
| @@ -299,6 +299,12 @@
|
| }
|
|
|
| jsAst.Expression visitConstructed(ConstructedConstant constant) {
|
| + Element element = constant.type.element;
|
| + if (element.isForeign(compiler)
|
| + && element.name == const SourceString('JS_CONST')) {
|
| + StringConstant str = constant.fields[0];
|
| + return new jsAst.LiteralExpression(str.value.slowToString());
|
| + }
|
| jsAst.New instantiation = new jsAst.New(
|
| new jsAst.VariableUse(getJsConstructor(constant.type.element)),
|
| _array(constant.fields));
|
|
|