-
Notifications
You must be signed in to change notification settings - Fork 29.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
V8: upcoming deprecation warnings #18909
Comments
Edit: Alternative APIs are all available on |
We are actually actively working on moving stuff marked as V8_DEPRECATE_SOON to V8_DEPRECATED. |
@hashseed good to know! I'll update this issue with the new deprecations as they arrive. |
This is the tracking bug for that effort. |
If this is still open may I know if I can take it up. |
Go for it. If you have issues you can comment here. |
Are those listed above 1:1 replacements? From: |
@helmutgranda They should be. FWIW I have put up an initial version about how to migrate the deprecated APIs in the C++ style guide quite some time ago, just have not found the time to polish it and open a PR, but here it is: Since there are some maybes that should be handled with care (proper cleanups), I am not quite sure how many of them are actually good first contributions (In my understanding good first contributions are not PRs that potentially need more than 3 rounds of reviews, those should be uh..probably good second contributions or something for people who are already familiar with the PR process). |
@wuweiweiwu if agreed please feel free to lately I've been held up with some events preparation. |
@joyeecheung / @targos are tests necessary for these changes? If so, how to go about writing them? |
PR-URL: nodejs#19490 Fixes: nodejs#18909 Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
The latest canary update uncovered a few new deprecations from V8.
I didn't check, but those can probably already be fixed onmaster
.v8::Message::GetLineNumber()
innode.cc
:Maybe<int> GetLineNumber(Local<Context> context)
v8::Message::GetSourceLine()
innode.cc
:MaybeLocal<String> GetSourceLine(Local<Context> context)
v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)
innode.cc
,node_api.cc
,node_buffer.cc
,node_v8.cc
andnode_crypto.cc
:Utf8Value(Isolate* isolate, Local<v8::Value> obj)
v8::Script::Run()
innode.cc
andnode_contextify.cc
:MaybeLocal<Value> Run(Local<Context> context)
v8::String::Value::Value(v8::Local<v8::Value>)
innode_buffer.cc
,string_bytes.cc
andinspector_js_api.cc
:Value(Isolate* isolate, Local<v8::Value> obj)
The text was updated successfully, but these errors were encountered: