You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Derive class `TypeTaggable` from `Value`, and let it serve as the base
class for `Object` and `External`. That way, the type tagging is
implemented for both classes.
Additionally, exclude deleted .js files from linting.
Signed-off-by: Gabriel Schulhof <[email protected]>
Refs: #1293
PR-URL: #1298
Reviewed-By: Michael Dawson <[email protected]
Reviewed-By: Chengzhong Wu <[email protected]>
Copy file name to clipboardExpand all lines: doc/external.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# External (template)
2
2
3
-
Class `Napi::External<T>` inherits from class [`Napi::Value`][].
3
+
Class `Napi::External<T>` inherits from class [`Napi::TypeTaggable`][].
4
4
5
5
The `Napi::External` template class implements the ability to create a `Napi::Value` object with arbitrary C++ data. It is the user's responsibility to manage the memory for the arbitrary C++ data.
Copy file name to clipboardExpand all lines: doc/object.md
+2-29Lines changed: 2 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Object
2
2
3
-
Class `Napi::Object` inherits from class [`Napi::Value`][].
3
+
Class `Napi::Object` inherits from class [`Napi::TypeTaggable`][].
4
4
5
5
The `Napi::Object` class corresponds to a JavaScript object. It is extended by the following node-addon-api classes that you may use when working with more specific types:
6
6
@@ -241,33 +241,6 @@ from being added to it and marking all existing properties as non-configurable.
241
241
Values of present properties can still be changed as long as they are
0 commit comments