File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -7642,6 +7642,9 @@ class V8_EXPORT Isolate {
7642
7642
*/
7643
7643
void SetIdle (bool is_idle);
7644
7644
7645
+ /* * Returns the ArrayBuffer::Allocator used in this isolate. */
7646
+ ArrayBuffer::Allocator* GetArrayBufferAllocator ();
7647
+
7645
7648
/* * Returns true if this isolate has a current context. */
7646
7649
bool InContext ();
7647
7650
Original file line number Diff line number Diff line change @@ -8007,6 +8007,11 @@ void Isolate::SetIdle(bool is_idle) {
8007
8007
isolate->SetIdle (is_idle);
8008
8008
}
8009
8009
8010
+ ArrayBuffer::Allocator* Isolate::GetArrayBufferAllocator () {
8011
+ i::Isolate* isolate = reinterpret_cast <i::Isolate*>(this );
8012
+ return isolate->array_buffer_allocator ();
8013
+ }
8014
+
8010
8015
bool Isolate::InContext () {
8011
8016
i::Isolate* isolate = reinterpret_cast <i::Isolate*>(this );
8012
8017
return isolate->context () != nullptr ;
Original file line number Diff line number Diff line change @@ -20881,6 +20881,7 @@ TEST(IsolateNewDispose) {
20881
20881
CHECK_NOT_NULL(isolate);
20882
20882
CHECK(current_isolate != isolate);
20883
20883
CHECK(current_isolate == CcTest::isolate());
20884
+ CHECK(isolate->GetArrayBufferAllocator() == CcTest::array_buffer_allocator());
20884
20885
20885
20886
isolate->SetFatalErrorHandler(StoringErrorCallback);
20886
20887
last_location = last_message = nullptr;
You can’t perform that action at this time.
0 commit comments