Skip to content

Commit

Permalink
fix: [DIOS-5504] Prevent releasing to the V8 Isolate when it is shutt…
Browse files Browse the repository at this point in the history
…ing down
  • Loading branch information
bcostdolby committed Nov 13, 2024
1 parent 31280ab commit 1572044
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/javascript/v8/javascriptrun.swg
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ typedef v8::PropertyCallbackInfo<v8::Value> SwigV8PropertyCallbackInfo;
#define SWIGV8_HANDLESCOPE_ESC() v8::EscapableHandleScope scope(v8::Isolate::GetCurrent());
#define SWIGV8_ESCAPE(val) return scope.Escape(val)

#define SWIGV8_ADJUST_MEMORY(size) v8::Isolate::GetCurrent()->AdjustAmountOfExternalAllocatedMemory(size)
#define SWIGV8_ADJUST_MEMORY(size) if (v8::Isolate::GetCurrent()) v8::Isolate::GetCurrent()->AdjustAmountOfExternalAllocatedMemory(size)
#define SWIGV8_CURRENT_CONTEXT() v8::Isolate::GetCurrent()->GetCurrentContext()
#define SWIGV8_THROW_EXCEPTION(err) v8::Isolate::GetCurrent()->ThrowException(err)

Expand Down

0 comments on commit 1572044

Please sign in to comment.