File tree Expand file tree Collapse file tree 4 files changed +10
-1
lines changed Expand file tree Collapse file tree 4 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 3737
3838 # Reset this number to 0 on major V8 upgrades.
3939 # Increment by one for each non-official patch applied to deps/v8.
40- 'v8_embedder_string' : '-node.2 ' ,
40+ 'v8_embedder_string' : '-node.3 ' ,
4141
4242 ##### V8 defaults for Node.js #####
4343
Original file line number Diff line number Diff line change @@ -7700,6 +7700,9 @@ class V8_EXPORT Isolate {
77007700 */
77017701 void SetIdle (bool is_idle);
77027702
7703+ /* * Returns the ArrayBuffer::Allocator used in this isolate. */
7704+ ArrayBuffer::Allocator* GetArrayBufferAllocator ();
7705+
77037706 /* * Returns true if this isolate has a current context. */
77047707 bool InContext ();
77057708
Original file line number Diff line number Diff line change @@ -7970,6 +7970,11 @@ void Isolate::SetIdle(bool is_idle) {
79707970 isolate->SetIdle (is_idle);
79717971}
79727972
7973+ ArrayBuffer::Allocator* Isolate::GetArrayBufferAllocator () {
7974+ i::Isolate* isolate = reinterpret_cast <i::Isolate*>(this );
7975+ return isolate->array_buffer_allocator ();
7976+ }
7977+
79737978bool Isolate::InContext () {
79747979 i::Isolate* isolate = reinterpret_cast <i::Isolate*>(this );
79757980 return !isolate->context ().is_null ();
Original file line number Diff line number Diff line change @@ -20620,6 +20620,7 @@ TEST(IsolateNewDispose) {
2062020620 CHECK_NOT_NULL(isolate);
2062120621 CHECK(current_isolate != isolate);
2062220622 CHECK(current_isolate == CcTest::isolate());
20623+ CHECK(isolate->GetArrayBufferAllocator() == CcTest::array_buffer_allocator());
2062320624
2062420625 isolate->SetFatalErrorHandler(StoringErrorCallback);
2062520626 last_location = last_message = nullptr;
You can’t perform that action at this time.
0 commit comments