Skip to content

Commit 619bf86

Browse files
mertcanaltinRafaelGSS
authored andcommitted
buffer: define global v8::CFunction objects as const
PR-URL: #57676 Reviewed-By: Darshan Sen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
1 parent 576a6df commit 619bf86

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/node_buffer.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1525,11 +1525,11 @@ uint32_t FastWriteString(Local<Value> receiver,
15251525
std::min<uint32_t>(dst.length() - offset, max_length));
15261526
}
15271527

1528-
static v8::CFunction fast_write_string_ascii(
1528+
static const v8::CFunction fast_write_string_ascii(
15291529
v8::CFunction::Make(FastWriteString<ASCII>));
1530-
static v8::CFunction fast_write_string_latin1(
1530+
static const v8::CFunction fast_write_string_latin1(
15311531
v8::CFunction::Make(FastWriteString<LATIN1>));
1532-
static v8::CFunction fast_write_string_utf8(
1532+
static const v8::CFunction fast_write_string_utf8(
15331533
v8::CFunction::Make(FastWriteString<UTF8>));
15341534

15351535
void Initialize(Local<Object> target,

0 commit comments

Comments
 (0)