| Index: runtime/vm/kernel_reader.cc
|
| diff --git a/runtime/vm/kernel_reader.cc b/runtime/vm/kernel_reader.cc
|
| index 0879f95ed2e713ab619368227eda0b8b03e121cf..42652c84c9050208425c11150046aaff2911c53c 100644
|
| --- a/runtime/vm/kernel_reader.cc
|
| +++ b/runtime/vm/kernel_reader.cc
|
| @@ -201,11 +201,13 @@ Object& KernelReader::ReadProgram() {
|
| // linked with a script, it does not need to be patched.
|
| if ((procedure != NULL) && (procedure->function()->body() == NULL)) {
|
| // We will handle the StaticGet specially and will not use the name.
|
| + // Note that we pass "true" in cannot_stream to avoid trying to stream
|
| + // a non-existing part of the binary.
|
| //
|
| // TODO(kmillikin): we are leaking the function body. Find a way to
|
| // deallocate it.
|
| procedure->function()->set_body(
|
| - new ReturnStatement(new StaticGet(NULL)));
|
| + new ReturnStatement(new StaticGet(NULL, true), true));
|
| }
|
| return library;
|
| }
|
|
|