Index: src/runtime/runtime-test.cc |
diff --git a/src/runtime/runtime-test.cc b/src/runtime/runtime-test.cc |
index ff0f472a934ac68a18e594eb2c31a96932ea96c9..345aa07c71fe2651abd8184779597adce54b42dd 100644 |
--- a/src/runtime/runtime-test.cc |
+++ b/src/runtime/runtime-test.cc |
@@ -527,5 +527,14 @@ ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(FastProperties) |
TYPED_ARRAYS(FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION) |
#undef FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION |
+ |
+ |
+RUNTIME_FUNCTION(Runtime_SpeciesProtector) { |
+ SealHandleScope shs(isolate); |
+ DCHECK_EQ(0, args.length()); |
+ return isolate->heap()->ToBoolean(isolate->IsArraySpeciesLookupChainIntact()); |
+} |
+ |
+ |
} // namespace internal |
} // namespace v8 |