Skip to content

Commit

Permalink
Merge pull request #4 from medooze/dev/bcost/DIOS-5504-shutdowncrash
Browse files Browse the repository at this point in the history
fix: [DIOS-5504] Prevent releasing to the V8 Isolate when it is shutting down
  • Loading branch information
bcostdolby authored Nov 20, 2024
2 parents 177c186 + 1572044 commit 71527fb
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 @@ -16,7 +16,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 71527fb

Please sign in to comment.