mirror of
https://github.com/nodejs/node.git
synced 2026-12-04 20:48:54 -05:00
src: cast v8::Object::GetInternalField() return value to v8::Value
In preparation of https://chromium-review.googlesource.com/c/v8/v8/+/4707972 which changes the return value to v8::Data. PR-URL: https://github.com/nodejs/node/pull/48943 Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Stephen Belanger <admin@stephenbelanger.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
This commit is contained in:
1 parent
7b9adff0be
commit
6c389df3aa
6 files changed
+13
-8
No files matched your search
@@ -50,7 +50,7 @@ static Maybe<double> GetAssignedPromiseWrapAsyncId(Environment* env,
|
||||
// be an object. If it's not, we just ignore it. Ideally v8 would
|
||||
// have had GetInternalField returning a MaybeLocal but this works
|
||||
// for now.
|
||||
Local<Value> promiseWrap = promise->GetInternalField(0);
|
||||
Local<Value> promiseWrap = promise->GetInternalField(0).As<Value>();
|
||||
if (promiseWrap->IsObject()) {
|
||||
Local<Value> maybe_async_id;
|
||||
if (!promiseWrap.As<Object>()->Get(env->context(), id_symbol)
|
||||
|
||||
Reference in new issue
Block a user