| Index: runtime/vm/compiler.cc
|
| ===================================================================
|
| --- runtime/vm/compiler.cc (revision 15556)
|
| +++ runtime/vm/compiler.cc (working copy)
|
| @@ -553,6 +553,12 @@
|
| Error& error = Error::Handle();
|
| Array& functions = Array::Handle(cls.functions());
|
| Function& func = Function::Handle();
|
| + // Class dynamic lives in the vm isolate. Its array fields cannot be set to
|
| + // an empty array.
|
| + if (functions.IsNull()) {
|
| + ASSERT(cls.IsDynamicClass());
|
| + return error.raw();
|
| + }
|
| for (int i = 0; i < functions.Length(); i++) {
|
| func ^= functions.At(i);
|
| ASSERT(!func.IsNull());
|
|
|