Skip to content

Commit f6eca05

Browse files
committed
fixup!
1 parent 18a24b6 commit f6eca05

File tree

2 files changed

+443
-53
lines changed

2 files changed

+443
-53
lines changed

src/node_types.cc

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ namespace {
4444
static void Is##type(const FunctionCallbackInfo<Value>& args) { \
4545
args.GetReturnValue().Set(args[0]->Is##type()); \
4646
} \
47-
static bool Is##type##FastApi(Local<Value> unused, Local<Value> receiver) { \
48-
TRACK_V8_FAST_API_CALL("types.isMethod.macro"); \
49-
return receiver->Is##type(); \
47+
static bool Is##type##FastApi(Local<Value> unused, Local<Value> value) { \
48+
TRACK_V8_FAST_API_CALL("types.is" #type); \
49+
return value->Is##type(); \
5050
} \
5151
static CFunction fast_is_##type##_ = CFunction::Make(Is##type##FastApi);
5252

@@ -59,9 +59,9 @@ static void IsAnyArrayBuffer(const FunctionCallbackInfo<Value>& args) {
5959
}
6060

6161
static bool IsAnyArrayBufferFastApi(Local<Value> unused,
62-
Local<Value> receiver) {
62+
Local<Value> value) {
6363
TRACK_V8_FAST_API_CALL("types.isAnyArrayBuffer");
64-
return receiver->IsArrayBuffer() || receiver->IsSharedArrayBuffer();
64+
return value->IsArrayBuffer() || value->IsSharedArrayBuffer();
6565
}
6666

6767
static CFunction fast_is_any_array_buffer_ =
@@ -77,11 +77,11 @@ static void IsBoxedPrimitive(const FunctionCallbackInfo<Value>& args) {
7777
}
7878

7979
static bool IsBoxedPrimitiveFastApi(Local<Value> unused,
80-
Local<Value> receiver) {
80+
Local<Value> value) {
8181
TRACK_V8_FAST_API_CALL("types.isBoxedPrimitive");
82-
return receiver->IsNumberObject() || receiver->IsStringObject() ||
83-
receiver->IsBooleanObject() || receiver->IsBigIntObject() ||
84-
receiver->IsSymbolObject();
82+
return value->IsNumberObject() || value->IsStringObject() ||
83+
value->IsBooleanObject() || value->IsBigIntObject() ||
84+
value->IsSymbolObject();
8585
}
8686

8787
static CFunction fast_is_boxed_primitive_ =

0 commit comments

Comments
 (0)