Skip to content

Commit 0cf3327

Browse files
committed
fix for v8 14.3
1 parent 68184a7 commit 0cf3327

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "winax",
3-
"version": "3.6.6",
3+
"version": "3.6.8",
44
"description": "Windows COM bindings",
55
"homepage": "https://github.com/durs/node-activex",
66
"keywords": [

src/utils.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,8 @@ class NodeObject : public ObjectWrap
297297
return nullptr;
298298
}
299299
void *ptr = nullptr;
300-
#if defined(V8_MAJOR_VERSION) && V8_MAJOR_VERSION >= 14
300+
301+
#if (V8_MAJOR_VERSION > 14 || (V8_MAJOR_VERSION == 14 && V8_MINOR_VERSION >= 3))
301302
ptr = handle->GetAlignedPointerFromInternalField(0, v8::kEmbedderDataTypeTagDefault);
302303
#else
303304
ptr = handle->GetAlignedPointerFromInternalField(0);

0 commit comments

Comments
 (0)