Skip to content

Commit 8ec007c

Browse files
cclausskkoopa
authored andcommitted
linelength=88
1 parent b8e2802 commit 8ec007c

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ repos:
44
hooks:
55
- id: cpplint
66
args:
7-
- --filter=-whitespace/indent_namespace,-whitespace/line_length,-whitespace/parens
7+
- --filter=-whitespace/indent_namespace,-whitespace/parens
8+
- --linelength=88

nan.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2615,7 +2615,9 @@ NAN_DEPRECATED inline void SetAccessor(
26152615
obj->SetInternalField(imp::kDataIndex, data);
26162616
}
26172617

2618-
#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 12 || (V8_MAJOR_VERSION == 12 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 5))
2618+
#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 12 \
2619+
|| (V8_MAJOR_VERSION == 12 && defined(V8_MINOR_VERSION) \
2620+
&& V8_MINOR_VERSION >= 5))
26192621
tpl->SetNativeDataProperty(
26202622
#else
26212623
tpl->SetAccessor(
@@ -2667,7 +2669,9 @@ inline void SetAccessor(
26672669
obj->SetInternalField(imp::kDataIndex, data);
26682670
}
26692671

2670-
#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 12 || (V8_MAJOR_VERSION == 12 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 5))
2672+
#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 12 \
2673+
|| (V8_MAJOR_VERSION == 12 && defined(V8_MINOR_VERSION) \
2674+
&& V8_MINOR_VERSION >= 5))
26712675
tpl->SetNativeDataProperty(
26722676
#else
26732677
tpl->SetAccessor(

test/cpp/methodswithdata.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,11 @@ NAN_MODULE_INIT(Init) {
170170
settergetter_constructor.Reset(tpl);
171171
tpl->SetClassName(Nan::New<v8::String>("SetterGetter").ToLocalChecked());
172172
tpl->InstanceTemplate()->SetInternalFieldCount(1);
173-
SetPrototypeMethod(tpl, "log", SetterGetter::Log, Nan::New("log-data").ToLocalChecked());
173+
SetPrototypeMethod(
174+
tpl,
175+
"log",
176+
SetterGetter::Log,
177+
Nan::New("log-data").ToLocalChecked());
174178
v8::Local<v8::ObjectTemplate> itpl = tpl->InstanceTemplate();
175179
SetAccessor(
176180
itpl
@@ -188,7 +192,8 @@ NAN_MODULE_INIT(Init) {
188192

189193
v8::Local<v8::Function> createnew =
190194
Nan::GetFunction(
191-
Nan::New<v8::FunctionTemplate>(CreateNew, Nan::New("create-data").ToLocalChecked())).ToLocalChecked();
195+
Nan::New<v8::FunctionTemplate>(
196+
CreateNew, Nan::New("create-data").ToLocalChecked())).ToLocalChecked();
192197
Set(target, Nan::New<v8::String>("create").ToLocalChecked(), createnew);
193198
}
194199

0 commit comments

Comments
 (0)