Skip to content

lib,test: do not hardcode Buffer.kMaxLength

Rodrigo Muino Tomonari requested to merge github/fork/targos/kMaxLength into main

V8 will soon support typed arrays as large as the maximum array buffer length. This patch replaces hardcoded values related to Buffer.kMaxLength with the actual constant. It also fixes a test that was passing by accident.

Refs: https://github.com/v8/v8/commit/44b299590083b888637c79fb5632806e607ab861

Merge request reports

Loading