diff options
Diffstat (limited to 'deps/v8/src/handles-inl.h')
-rw-r--r-- | deps/v8/src/handles-inl.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/deps/v8/src/handles-inl.h b/deps/v8/src/handles-inl.h index 22bbd7cd7c..a25b4a2266 100644 --- a/deps/v8/src/handles-inl.h +++ b/deps/v8/src/handles-inl.h @@ -97,7 +97,8 @@ bool Handle<T>::IsDereferenceAllowed(DereferenceCheckMode mode) const { if (!AllowHandleDereference::IsAllowed()) return false; if (mode == INCLUDE_DEFERRED_CHECK && !AllowDeferredHandleDereference::IsAllowed()) { - // Accessing maps and internalized strings is safe. + // Accessing cells, maps and internalized strings is safe. + if (heap_object->IsCell()) return true; if (heap_object->IsMap()) return true; if (heap_object->IsInternalizedString()) return true; return !heap->isolate()->IsDeferredHandle(handle); |