Index: src/conversions-inl.h |
diff --git a/src/conversions-inl.h b/src/conversions-inl.h |
index 730e6477cbee3e0fb781d692ec971d5a32b7ba36..5fe71e09d3cc49d79277d434c66fbcfbd26e3b55 100644 |
--- a/src/conversions-inl.h |
+++ b/src/conversions-inl.h |
@@ -133,7 +133,8 @@ int64_t NumberToInt64(Object* number) { |
} |
bool TryNumberToSize(Isolate* isolate, Object* number, size_t* result) { |
- SealHandleScope shs(isolate); |
+ // Do not create handles in this function! Don't use SealHandleScope because |
+ // the function can be used concurrently. |
if (number->IsSmi()) { |
int value = Smi::cast(number)->value(); |
DCHECK(static_cast<unsigned>(Smi::kMaxValue) <= |