mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
src: fix usage of deprecated V8 API
Some checks failed
V8 patch update / v8-update (push) Has been cancelled
OpenSSL update / openssl-update (push) Has been cancelled
Timezone update / timezone_update (push) Has been cancelled
License update / update_license (push) Has been cancelled
Find inactive collaborators / find (push) Has been cancelled
Scorecard supply-chain security / Scorecard analysis (push) Has been cancelled
Find inactive TSC voting members / find (push) Has been cancelled
Some checks failed
V8 patch update / v8-update (push) Has been cancelled
OpenSSL update / openssl-update (push) Has been cancelled
Timezone update / timezone_update (push) Has been cancelled
License update / update_license (push) Has been cancelled
Find inactive collaborators / find (push) Has been cancelled
Scorecard supply-chain security / Scorecard analysis (push) Has been cancelled
Find inactive TSC voting members / find (push) Has been cancelled
Namely `GetContinuationPreservedEmbedderData` and
`SetContinuationPreservedEmbedderData` for their "V2" variants.
Refs: da41db36ec
PR-URL: https://github.com/nodejs/node/pull/60174
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: Richard Lau <richard.lau@ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
This commit is contained in:
@@ -34,7 +34,7 @@ Scope::~Scope() {
|
||||
}
|
||||
|
||||
Local<Value> current(Isolate* isolate) {
|
||||
return isolate->GetContinuationPreservedEmbedderData();
|
||||
return isolate->GetContinuationPreservedEmbedderDataV2().As<Value>();
|
||||
}
|
||||
|
||||
void set(Isolate* isolate, Local<Value> value) {
|
||||
@@ -43,7 +43,7 @@ void set(Isolate* isolate, Local<Value> value) {
|
||||
return;
|
||||
}
|
||||
|
||||
isolate->SetContinuationPreservedEmbedderData(value);
|
||||
isolate->SetContinuationPreservedEmbedderDataV2(value);
|
||||
}
|
||||
|
||||
// NOTE: It's generally recommended to use async_context_frame::Scope
|
||||
|
||||
Reference in New Issue
Block a user