Skip to content

Commit a551989

Browse files
committed
src: update locks to use DictionaryTemplate and other minor cleanups
nodejs/node#60061
1 parent dee4701 commit a551989

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

‎patches/node/api_remove_deprecated_getisolate.patch‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@ index da4206187f7c7d2becb8a101c1ff5346a10e13f4..03f0910926f3d403121e227cee32a546
784784
// Recreate the buffer in the constructor.
785785
BindingData* binding = realm->AddBindingData<BindingData>(holder);
786786
diff --git a/src/util-inl.h b/src/util-inl.h
787-
index 5699d76fdfee4b260aa23929f1fb678389ad99e7..4e9c4fea85d12e72362e5049a33c233fd41594e8 100644
787+
index 5699d76fdfee4b260aa23929f1fb678389ad99e7..d07bceb425f00882db116975a92f4835d7c2cf3b 100644
788788
--- a/src/util-inl.h
789789
+++ b/src/util-inl.h
790790
@@ -336,14 +336,14 @@ v8::Maybe<void> FromV8Array(v8::Local<v8::Context> context,
@@ -804,6 +804,15 @@ index 5699d76fdfee4b260aa23929f1fb678389ad99e7..4e9c4fea85d12e72362e5049a33c233f
804804
if (str.size() >= static_cast<size_t>(v8::String::kMaxLength)) [[unlikely]] {
805805
// V8 only has a TODO comment about adding an exception when the maximum
806806
// string size is exceeded.
807+
@@ -359,7 +359,7 @@ v8::MaybeLocal<v8::Value> ToV8Value(v8::Local<v8::Context> context,
808+
v8::MaybeLocal<v8::Value> ToV8Value(v8::Local<v8::Context> context,
809+
std::u16string_view str,
810+
v8::Isolate* isolate) {
811+
- if (isolate == nullptr) isolate = context->GetIsolate();
812+
+ if (isolate == nullptr) isolate = v8::Isolate::GetCurrent();
813+
if (str.length() >= static_cast<size_t>(v8::String::kMaxLength))
814+
[[unlikely]] {
815+
// V8 only has a TODO comment about adding an exception when the maximum
807816
@@ -379,7 +379,7 @@ v8::MaybeLocal<v8::Value> ToV8Value(v8::Local<v8::Context> context,
808817
v8::MaybeLocal<v8::Value> ToV8Value(v8::Local<v8::Context> context,
809818
v8_inspector::StringView str,

‎patches/node/src_use_cp_utf8_for_wide_file_names_on_win32.patch‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ index d8477191efafba3c41c06d765f4b03bd00b8573c..5444e556b89ba5b71739753eaafa706c
201201

202202
if (package_json == nullptr) {
203203
diff --git a/src/util-inl.h b/src/util-inl.h
204-
index 4e9c4fea85d12e72362e5049a33c233fd41594e8..bab397370601464da37b4fbac399887e07bba35c 100644
204+
index d07bceb425f00882db116975a92f4835d7c2cf3b..6898e8ea794675e903e13e2b45524d572a3f68bb 100644
205205
--- a/src/util-inl.h
206206
+++ b/src/util-inl.h
207207
@@ -718,12 +718,11 @@ inline bool IsWindowsBatchFile(const char* filename) {

0 commit comments

Comments
 (0)