Skip to content

Commit ac637c9

Browse files
isheludkovictorgomes
authored andcommitted
Don't use soon-to-be-deprecated V8 Api (#182)
Namely v8::FunctionCallbackInfo::Holder(), one should use This() method instead. See https://crrev.com/c/5444829 for details.
1 parent 6425328 commit ac637c9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -844,9 +844,9 @@ class from C++.
844844
The JavaScript object can be accessed as a `v8::Local<v8::Object>` by using
845845
`self->object()`, given a `BaseObject` named `self`.
846846

847-
Accessing a `BaseObject` from a `v8::Local<v8::Object>` (frequently that is
848-
`args.This()` in a [binding function][]) can be done using
849-
the `Unwrap<T>(obj)` function, where `T` is a subclass of `BaseObject`.
847+
Accessing a `BaseObject` from a `v8::Local<v8::Object>` (that is `args.This()`
848+
in a [binding function][]) can be done using the `Unwrap<T>(obj)` function,
849+
where `T` is a subclass of `BaseObject`.
850850
A helper for this is the `ASSIGN_OR_RETURN_UNWRAP` macro that returns from the
851851
current function if unwrapping fails (typically that means that the `BaseObject`
852852
has been deleted earlier).

0 commit comments

Comments
 (0)