Skip to content

Commit

Permalink
fix electron rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
durs committed May 15, 2021
1 parent cded0dd commit ec3d098
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "winax",
"version": "3.1.3",
"version": "3.1.4",
"description": "Windows COM bindings",
"homepage": "https://github.com/durs/node-activex",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion src/disp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ void DispObject::NodeCreate(const FunctionCallbackInfo<Value> &args) {
isolate->ThrowException(InvalidArgumentsError(isolate));
return;
}
#ifdef NODE_V8V8
#if (NODE_MAJOR_VERSION >= 14)
std::shared_ptr<BackingStore> store = input->Buffer()->GetBackingStore();
void *data = store->Data();
#else
Expand Down
7 changes: 0 additions & 7 deletions src/stdafx.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,5 @@
using namespace v8;
using namespace node;

#if (V8_MAJOR_VERSION >= 7)
#define NODE_V8V7
#if (V8_MAJOR_VERSION >= 8)
#define NODE_V8V8
#endif
#endif

// Application defines
//#define TEST_ADVISE

0 comments on commit ec3d098

Please sign in to comment.