Index: runtime/vm/native_arguments.h |
diff --git a/runtime/vm/native_arguments.h b/runtime/vm/native_arguments.h |
index 3fb2f74515761b8a7975ca5adcfa74791351f7fe..0655a6914652fab8d29f296ebf7e9b3b152f7327 100644 |
--- a/runtime/vm/native_arguments.h |
+++ b/runtime/vm/native_arguments.h |
@@ -107,7 +107,7 @@ class NativeArguments { |
// Retrieve the receiver from the context. |
const Object& closure = Object::Handle(ArgAt(0)); |
const Context& context = |
- Context::Handle(Closure::context(Instance::Cast(closure))); |
+ Context::Handle(Closure::Cast(closure).context()); |
return context.At(0); |
} |
return ArgAt(NumHiddenArgs(function_bits)); |