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 — v8: replace Buffer with FastBuffer in deserialize · nodejs/node@d46446a

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • lib
    • v8.js
  • test/parallel
    • test-v8-deserialize-buffer.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/v8.js‎

Copy file name to clipboardExpand all lines: lib/v8.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ const arrayBufferViewTypeToIndex = new Map();
143143
}
144144
}
145145

146-
const bufferConstructorIndex = arrayBufferViewTypes.push(Buffer) - 1;
146+
const bufferConstructorIndex = arrayBufferViewTypes.push(FastBuffer) - 1;
147147

148148
class DefaultSerializer extends Serializer {
149149
constructor() {
Collapse file

‎test/parallel/test-v8-deserialize-buffer.js‎

Copy file name to clipboard
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// Flags: --pending-deprecation --no-warnings
2+
'use strict';
3+
4+
const common = require('../common');
5+
const v8 = require('v8');
6+
7+
process.on('warning', common.mustNotCall());
8+
v8.deserialize(v8.serialize(Buffer.alloc(0)));

0 commit comments

Comments
0 (0)
You are visitor 01402775 — 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.