| Index: sdk/lib/_internal/lib/js_mirrors.dart
|
| diff --git a/sdk/lib/_internal/lib/js_mirrors.dart b/sdk/lib/_internal/lib/js_mirrors.dart
|
| index b4a250d4a28c02cd7c7a341898906344f1f648e5..1c0292fad62f9431f1167306ae1ebac19acab817 100644
|
| --- a/sdk/lib/_internal/lib/js_mirrors.dart
|
| +++ b/sdk/lib/_internal/lib/js_mirrors.dart
|
| @@ -1798,8 +1798,15 @@ class JsClassMirror extends JsTypeMirror with JsObjectMirror
|
| JS('void', '#[#] = #', JS_CURRENT_ISOLATE(), jsName, arg);
|
| return reflect(arg);
|
| }
|
| - throw new NoSuchStaticMethodError.method(
|
| - null, setterSymbol(fieldName), [arg], null);
|
| + Symbol setterName = setterSymbol(fieldName);
|
| + if (mirror == null) {
|
| + JsMethodMirror setter = __setters[setterName];
|
| + if (setter != null) {
|
| + setter._invoke([arg], const {});
|
| + return reflect(arg);
|
| + }
|
| + }
|
| + throw new NoSuchStaticMethodError.method(null, setterName, [arg], null);
|
| }
|
|
|
| bool _staticFieldExists(Symbol fieldName) {
|
|
|