Index: runtime/vm/dart_api_impl.cc |
=================================================================== |
--- runtime/vm/dart_api_impl.cc (revision 20419) |
+++ runtime/vm/dart_api_impl.cc (working copy) |
@@ -4401,6 +4401,8 @@ |
if (buffer == NULL) { |
RETURN_NULL_ERROR(buffer); |
} |
+ NoHeapGrowthControlScope no_growth_control; |
+ |
const Snapshot* snapshot = Snapshot::SetupFromBuffer(buffer); |
if (!snapshot->IsScriptSnapshot()) { |
return Api::NewError("%s expects parameter 'buffer' to be a script type" |