v8: replace Buffer with FastBuffer in deserialize · nodejs/node@d46446a · GitHub
Skip to content

Commit d46446a

Browse files
ryzokukentargos
authored andcommitted
v8: replace Buffer with FastBuffer in deserialize
Replace the Buffer constructor with a FastBuffer in v8.deserialize in order to avoid calling the Buffer constructor and thus triggering a deprecation warning from code inside the core. Fixes: #21181 PR-URL: #21196 Fixes: #21181 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 13fd09b commit d46446a

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

lib/v8.js

Lines changed: 1 addition & 1 deletion
Lines changed: 8 additions & 0 deletions

0 commit comments

Comments
 (0)