| Index: runtime/lib/isolate.cc
|
| diff --git a/runtime/lib/isolate.cc b/runtime/lib/isolate.cc
|
| index 773bac4b20ca53366bca11a34c761bf11aa9eaed..4e1fce8dc4e40f1138ec86c70e6ef6527165c436 100644
|
| --- a/runtime/lib/isolate.cc
|
| +++ b/runtime/lib/isolate.cc
|
| @@ -226,11 +226,11 @@ DEFINE_NATIVE_ENTRY(Isolate_spawnFunction, 10) {
|
|
|
| if (closure.IsClosure()) {
|
| Function& func = Function::Handle();
|
| - func = Closure::function(closure);
|
| + func = Closure::Cast(closure).function();
|
| if (func.IsImplicitClosureFunction() && func.is_static()) {
|
| #if defined(DEBUG)
|
| Context& ctx = Context::Handle();
|
| - ctx = Closure::context(closure);
|
| + ctx = Closure::Cast(closure).context();
|
| ASSERT(ctx.num_variables() == 0);
|
| #endif
|
| // Get the parent function so that we get the right function name.
|
|
|