From d006bd534913b1214c6645012c7a3204e1d68fd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Sat, 30 Sep 2023 10:00:57 +0200 Subject: [PATCH] src: adapt to v8::Exception API change Refs: https://github.com/v8/v8/commit/341bce2202f33415e8a1ce710e4ef6834ca381c2 --- src/env-inl.h | 4 ++-- src/env.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/env-inl.h b/src/env-inl.h index 793dc72e0db..56a96def344 100644 --- a/src/env-inl.h +++ b/src/env-inl.h @@ -776,10 +776,10 @@ inline void Environment::ThrowRangeError(const char* errmsg) { } inline void Environment::ThrowError( - v8::Local (*fun)(v8::Local), + v8::Local (*fun)(v8::Local, v8::Local), const char* errmsg) { v8::HandleScope handle_scope(isolate()); - isolate()->ThrowException(fun(OneByteString(isolate(), errmsg))); + isolate()->ThrowException(fun(OneByteString(isolate(), errmsg), {})); } inline void Environment::ThrowErrnoException(int errorno, diff --git a/src/env.h b/src/env.h index afe67d2237a..00acfeb4060 100644 --- a/src/env.h +++ b/src/env.h @@ -1016,7 +1016,7 @@ class Environment : public MemoryRetainer { }; private: - inline void ThrowError(v8::Local (*fun)(v8::Local), + inline void ThrowError(v8::Local (*fun)(v8::Local, v8::Local), const char* errmsg); void TrackContext(v8::Local context); void UntrackContext(v8::Local context);