Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5cb6fde

Browse files
committedNov 16, 2023
src: create BaseObject with node::Realm
nodejs/node#44348
1 parent 920946f commit 5cb6fde

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed
 

‎patches/node/src_adapt_to_v8_exception_api_change.patch

+7-7
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ Subject: src: adapt to v8::Exception API change
77
Cherry picked fix from https://github.com/nodejs/node-v8/commit/675f411677c28a10a2f03d4b3ef14c2284c33587
88

99
diff --git a/src/env-inl.h b/src/env-inl.h
10-
index debd982c75805c51ea7d01229b9d635550060503..103dc6711e71e15da640edc5e017bc638ddc6ad1 100644
10+
index 222c78ef0cb9904742fd44f8182278ab1f50cd59..e248a144b905a6c7c166796cddfe8442f8dc7158 100644
1111
--- a/src/env-inl.h
1212
+++ b/src/env-inl.h
13-
@@ -730,10 +730,10 @@ inline void Environment::ThrowRangeError(const char* errmsg) {
13+
@@ -780,10 +780,10 @@ inline void Environment::ThrowRangeError(const char* errmsg) {
1414
}
1515

1616
inline void Environment::ThrowError(
@@ -24,15 +24,15 @@ index debd982c75805c51ea7d01229b9d635550060503..103dc6711e71e15da640edc5e017bc63
2424

2525
inline void Environment::ThrowErrnoException(int errorno,
2626
diff --git a/src/env.h b/src/env.h
27-
index 45a9a7811b4abe1effb6acf2c89a772a7c2256c9..36e8e7d960a95a9040ad963c79a7f66c89233c87 100644
27+
index 87df6e1f32e584aa0c6ae21856299fff31d67669..c9a455be8c395a2f231f56e0a54211466362aa1d 100644
2828
--- a/src/env.h
2929
+++ b/src/env.h
30-
@@ -956,7 +956,7 @@ class Environment : public MemoryRetainer {
31-
inline void RemoveHeapSnapshotNearHeapLimitCallback(size_t heap_limit);
30+
@@ -1017,7 +1017,7 @@ class Environment : public MemoryRetainer {
31+
};
3232

3333
private:
3434
- inline void ThrowError(v8::Local<v8::Value> (*fun)(v8::Local<v8::String>),
3535
+ inline void ThrowError(v8::Local<v8::Value> (*fun)(v8::Local<v8::String>, v8::Local<v8::Value>),
3636
const char* errmsg);
37-
38-
std::list<binding::DLib> loaded_addons_;
37+
void TrackContext(v8::Local<v8::Context> context);
38+
void UntrackContext(v8::Local<v8::Context> context);

0 commit comments

Comments
 (0)
Please sign in to comment.