File tree 9 files changed +15
-7
lines changed
9 files changed +15
-7
lines changed Original file line number Diff line number Diff line change 15
15
16
16
strategy :
17
17
matrix :
18
- node-version : [14 .x, 16 .x, 18 .x]
18
+ node-version : [16 .x, 18 .x, 20 .x]
19
19
operating-system : [ubuntu-latest, windows-2019, macos-latest]
20
20
21
21
steps :
Original file line number Diff line number Diff line change 1
1
build /
2
+ build_with_cmake /
2
3
node_modules /
3
4
Debug /
4
5
Release /
Original file line number Diff line number Diff line change @@ -5,7 +5,8 @@ void Method(const Nan::FunctionCallbackInfo<v8::Value>& info) {
5
5
}
6
6
7
7
void Init (v8::Local<v8::Object> exports) {
8
- v8::Local<v8::Context> context = exports->CreationContext ();
8
+ v8::Local<v8::Context> context =
9
+ exports->GetCreationContext ().ToLocalChecked ();
9
10
exports->Set (context,
10
11
Nan::New (" hello" ).ToLocalChecked (),
11
12
Nan::New<v8::FunctionTemplate>(Method)
Original file line number Diff line number Diff line change @@ -21,7 +21,8 @@ void Add(const Nan::FunctionCallbackInfo<v8::Value>& info) {
21
21
}
22
22
23
23
void Init (v8::Local<v8::Object> exports) {
24
- v8::Local<v8::Context> context = exports->CreationContext ();
24
+ v8::Local<v8::Context> context =
25
+ exports->GetCreationContext ().ToLocalChecked ();
25
26
exports->Set (context,
26
27
Nan::New (" add" ).ToLocalChecked (),
27
28
Nan::New<v8::FunctionTemplate>(Add)
Original file line number Diff line number Diff line change @@ -11,7 +11,8 @@ void CreateObject(const Nan::FunctionCallbackInfo<v8::Value>& info) {
11
11
}
12
12
13
13
void Init (v8::Local<v8::Object> exports, v8::Local<v8::Object> module) {
14
- v8::Local<v8::Context> context = exports->CreationContext ();
14
+ v8::Local<v8::Context> context =
15
+ exports->GetCreationContext ().ToLocalChecked ();
15
16
module->Set (context,
16
17
Nan::New (" exports" ).ToLocalChecked (),
17
18
Nan::New<v8::FunctionTemplate>(CreateObject)
Original file line number Diff line number Diff line change @@ -7,7 +7,8 @@ MyObject::MyObject(double value) : value_(value) {}
7
7
MyObject::~MyObject () {}
8
8
9
9
void MyObject::Init (v8::Local<v8::Object> exports) {
10
- v8::Local<v8::Context> context = exports->CreationContext ();
10
+ v8::Local<v8::Context> context =
11
+ exports->GetCreationContext ().ToLocalChecked ();
11
12
Nan::HandleScope scope;
12
13
13
14
// Prepare constructor template
Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ void CreateObject(const Nan::FunctionCallbackInfo<v8::Value>& info) {
6
6
}
7
7
8
8
void InitAll (v8::Local<v8::Object> exports, v8::Local<v8::Object> module) {
9
- v8::Local<v8::Context> context = exports->CreationContext ();
9
+ v8::Local<v8::Context> context =
10
+ exports->GetCreationContext ().ToLocalChecked ();
10
11
11
12
Nan::HandleScope scope;
12
13
Original file line number Diff line number Diff line change @@ -19,7 +19,8 @@ void Add(const Nan::FunctionCallbackInfo<v8::Value>& info) {
19
19
}
20
20
21
21
void InitAll (v8::Local<v8::Object> exports) {
22
- v8::Local<v8::Context> context = exports->CreationContext ();
22
+ v8::Local<v8::Context> context =
23
+ exports->GetCreationContext ().ToLocalChecked ();
23
24
24
25
MyObject::Init ();
25
26
Original file line number Diff line number Diff line change 21
21
"dependencies" : {
22
22
"chalk" : " ^3.0.0" ,
23
23
"clang-format" : " ^1.4.0" ,
24
+ "cmake-js" : " ^7.1.1" ,
24
25
"semver" : " ^7.1.3"
25
26
},
26
27
"devDependencies" : {
You can’t perform that action at this time.
0 commit comments