GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Avoid deprecated TypedArray::kMaxLength field (#170) · v8/node@26a112e

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src
    • node_buffer.h
    • node_errors.h
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/node_buffer.h‎

Copy file name to clipboardExpand all lines: src/node_buffer.h
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ namespace node {
2929

3030
namespace Buffer {
3131

32-
static const size_t kMaxLength = v8::TypedArray::kMaxLength;
32+
static const size_t kMaxLength = v8::TypedArray::kMaxByteLength;
3333

3434
typedef void (*FreeCallback)(char* data, void* hint);
3535

Collapse file

‎src/node_errors.h‎

Copy file name to clipboardExpand all lines: src/node_errors.h
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ inline v8::Local<v8::Value> ERR_BUFFER_TOO_LARGE(v8::Isolate* isolate) {
212212
char message[128];
213213
snprintf(message, sizeof(message),
214214
"Cannot create a Buffer larger than 0x%zx bytes",
215-
v8::TypedArray::kMaxLength);
215+
v8::TypedArray::kMaxByteLength);
216216
return ERR_BUFFER_TOO_LARGE(isolate, message);
217217
}
218218

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.