| Index: sdk/lib/_internal/compiler/implementation/js_backend/constant_emitter.dart
|
| diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/constant_emitter.dart b/sdk/lib/_internal/compiler/implementation/js_backend/constant_emitter.dart
|
| index f19fc1bb53b76693964c54206f09ac9edb4c2a48..e0de9ba724b1d8e200daf3167345306a47d58f56 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/js_backend/constant_emitter.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/js_backend/constant_emitter.dart
|
| @@ -179,7 +179,7 @@ class ConstantInitializerEmitter implements ConstantVisitor<jsAst.Expression> {
|
| }
|
|
|
| jsAst.Expression visitFunction(FunctionConstant constant) {
|
| - compiler.internalError(
|
| + compiler.internalError(NO_LOCATION_SPANNABLE,
|
| "The function constant does not need specific JS code");
|
| return null;
|
| }
|
| @@ -274,7 +274,7 @@ class ConstantInitializerEmitter implements ConstantVisitor<jsAst.Expression> {
|
| } else if (field.name == MapConstant.JS_DATA_NAME) {
|
| arguments.add(jsGeneralMap());
|
| } else {
|
| - compiler.internalError(
|
| + compiler.internalError(field,
|
| "Compiler has unexpected field ${field.name} for "
|
| "${className}.");
|
| }
|
| @@ -287,7 +287,7 @@ class ConstantInitializerEmitter implements ConstantVisitor<jsAst.Expression> {
|
| emittedArgumentCount != 4) ||
|
| (className == MapConstant.DART_GENERAL_CLASS &&
|
| emittedArgumentCount != 1)) {
|
| - compiler.internalError(
|
| + compiler.internalError(classElement,
|
| "Compiler and ${className} disagree on number of fields.");
|
| }
|
|
|
|
|