Chromium Code Reviews| Index: runtime/vm/kernel_reader.cc |
| diff --git a/runtime/vm/kernel_reader.cc b/runtime/vm/kernel_reader.cc |
| index 22f5568ec1b516f836ad9793a1ea1625bbccf8bc..d585521dea3372c292f666facaae015516862658 100644 |
| --- a/runtime/vm/kernel_reader.cc |
| +++ b/runtime/vm/kernel_reader.cc |
| @@ -706,7 +706,10 @@ ParsedFunction* ParseStaticFieldInitializer(Zone* zone, |
| init_name = Symbols::FromConcat(thread, Symbols::InitPrefix(), init_name); |
| // Create a static initializer. |
| - const dart::Class& owner = dart::Class::Handle(zone, field.Owner()); |
| + |
| + // Use RawOwner: We also want PatchClass (created by ClassForScriptAt) |
|
Kevin Millikin (Google)
2016/11/23 10:40:45
The comment wording is strange, but I'm not sure t
jensj
2016/11/23 11:39:27
I'll remove it.
|
| + // so the initializer function gets the same script as the field. |
| + const Object& owner = Object::Handle(field.RawOwner()); |
| const Function& initializer_fun = Function::ZoneHandle( |
| zone, |
| dart::Function::New(init_name, RawFunction::kImplicitStaticFinalGetter, |