File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
benchmark/misc/function_call Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -965,6 +965,7 @@ LINT_CPP_EXCLUDE += $(wildcard test/addons-napi/??_*/*.cc test/addons-napi/??_*/
965
965
LINT_CPP_EXCLUDE += src/tracing/trace_event.h src/tracing/trace_event_common.h
966
966
967
967
LINT_CPP_FILES = $(filter-out $(LINT_CPP_EXCLUDE ) , $(wildcard \
968
+ benchmark/misc/function_call/binding.cc \
968
969
src/* .c \
969
970
src/* .cc \
970
971
src/* .h \
Original file line number Diff line number Diff line change 1
1
#include < v8.h>
2
2
#include < node.h>
3
3
4
- using namespace v8 ;
5
-
6
4
static int c = 0 ;
7
5
8
- void Hello (const FunctionCallbackInfo<Value>& args) {
6
+ void Hello (const v8:: FunctionCallbackInfo<v8:: Value>& args) {
9
7
args.GetReturnValue ().Set (c++);
10
8
}
11
9
12
- extern " C" void init (Local<Object> target) {
13
- HandleScope scope (Isolate::GetCurrent ());
10
+ void Initialize (v8::Local<v8::Object> target) {
14
11
NODE_SET_METHOD (target, " hello" , Hello);
15
12
}
16
13
17
- NODE_MODULE (NODE_GYP_MODULE_NAME, init )
14
+ NODE_MODULE (NODE_GYP_MODULE_NAME, Initialize )
You can’t perform that action at this time.
0 commit comments