Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nodejsUtils: don't use deprecated Buffer api
This avoids using Buffer constructor API on newer Node.js versions. To achieve that, Buffer.from presence is checked, with validating that it's not the same method as Uint8Array.from. Refs: https://nodejs.org/api/deprecations.html#deprecations_dep0005_buffer_constructor Signed-off-by: Robin Andersson <[email protected]>
- Loading branch information