Buffer.from usage in bootcode causes failure on Node 5
See original GitHub issuebootcode.js uses Buffer.from, but engines in package.json is set to >= 4.
Supposedly Buffer.from API was added in Node 6.
We got this error in a Jenkins job…
TypeError: this is not a typed array.
at Function.from (native)
at module.exports (/var/lib/jenkins/jobs/snip/workspace/node_modules/postman-sandbox/.cache/bootcode.js:1:105)
at cacher (/var/lib/jenkins/jobs/snip/workspace/node_modules/postman-sandbox/lib/bootcode.js:32:5)
at Object.module.exports.createContext (/var/lib/jenkins/jobs/snip/workspace/node_modules/postman-sandbox/lib/index.js:108:9)
Issue Analytics
- State:
- Created 7 years ago
- Reactions:3
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Buffer() is deprecated due to security and usability issues ...
Getting error when script move to other server. (node:15707) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability ...
Read more >Node.js Buffer.from() Method - W3Schools
Definition and Usage. The Buffer.from() method creates a new buffer filled with the specified string, array, or buffer. Syntax. Buffer.
Read more >Using U-boot to Boot From a NAND Flash Memory Device for ...
Block-based error correction solves this problem, but it prevents random memory accesses for execute-in-place code without a specialized. NAND Flash memory ...
Read more >Buffer | Node.js v19.3.0 Documentation
Buffer objects are used to represent a fixed-length sequence of bytes. Many Node.js APIs support Buffer s. The Buffer class is a subclass...
Read more >Node.js buffer: A complete guide - LogRocket Blog
Walk through the basics of the Node.js buffer module and learn how to use Node.js buffer methods in your own application.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@brendo @thirstyfish @itsjamie This issue has been fixed in Newman
v3.4.1
, do go ahead and check it out!The fix isn’t ready. Releasing a patch today.