mirror of
https://github.com/zebrajr/node.git
synced 2025-12-06 12:20:27 +01:00
benchmark: fix build warnings
The napi/* benchmarks were using an incorrect signature for the V8 add-on init function. This was causing a warning. Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com> PR-URL: https://github.com/nodejs/node/pull/36157 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com>
This commit is contained in:
parent
2d2491284e
commit
3ee556a867
|
|
@ -123,7 +123,9 @@ void CallWithArguments(const FunctionCallbackInfo<Value>& args) {
|
|||
}
|
||||
}
|
||||
|
||||
void Initialize(Local<Object> target) {
|
||||
void Initialize(Local<Object> target,
|
||||
Local<Value> module,
|
||||
void* data) {
|
||||
NODE_SET_METHOD(target, "callWithString", CallWithString);
|
||||
NODE_SET_METHOD(target, "callWithLongString", CallWithString);
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,9 @@ void Hello(const v8::FunctionCallbackInfo<v8::Value>& args) {
|
|||
args.GetReturnValue().Set(c++);
|
||||
}
|
||||
|
||||
void Initialize(v8::Local<v8::Object> target) {
|
||||
void Initialize(v8::Local<v8::Object> target,
|
||||
v8::Local<v8::Value> module,
|
||||
void* data) {
|
||||
NODE_SET_METHOD(target, "hello", Hello);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user