Index: src/mark-compact.cc |
diff --git a/src/mark-compact.cc b/src/mark-compact.cc |
index 8db48c394676fb6c893168fc8f1cf394e46ede59..df4739ea04d9b1b271705ae2922ac14ecc6388fb 100644 |
--- a/src/mark-compact.cc |
+++ b/src/mark-compact.cc |
@@ -238,7 +238,7 @@ class VerifyNativeContextSeparationVisitor: public ObjectVisitor { |
CheckContext(JSFunction::cast(object)->context()); |
break; |
case JS_GLOBAL_PROXY_TYPE: |
- CheckContext(JSGlobalProxy::cast(object)->context()); |
+ CheckContext(JSGlobalProxy::cast(object)->native_context()); |
break; |
case JS_GLOBAL_OBJECT_TYPE: |
case JS_BUILTINS_OBJECT_TYPE: |