We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 177c186 + 1572044 commit 71527fbCopy full SHA for 71527fb
Lib/javascript/v8/javascriptrun.swg
@@ -16,7 +16,7 @@ typedef v8::PropertyCallbackInfo<v8::Value> SwigV8PropertyCallbackInfo;
16
#define SWIGV8_HANDLESCOPE_ESC() v8::EscapableHandleScope scope(v8::Isolate::GetCurrent());
17
#define SWIGV8_ESCAPE(val) return scope.Escape(val)
18
19
-#define SWIGV8_ADJUST_MEMORY(size) v8::Isolate::GetCurrent()->AdjustAmountOfExternalAllocatedMemory(size)
+#define SWIGV8_ADJUST_MEMORY(size) if (v8::Isolate::GetCurrent()) v8::Isolate::GetCurrent()->AdjustAmountOfExternalAllocatedMemory(size)
20
#define SWIGV8_CURRENT_CONTEXT() v8::Isolate::GetCurrent()->GetCurrentContext()
21
#define SWIGV8_THROW_EXCEPTION(err) v8::Isolate::GetCurrent()->ThrowException(err)
22
0 commit comments