question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Buffer.from usage in bootcode causes failure on Node 5

See original GitHub issue

bootcode.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:closed
  • Created 7 years ago
  • Reactions:3
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kunagpalcommented, Jan 6, 2017

@brendo @thirstyfish @itsjamie This issue has been fixed in Newman v3.4.1, do go ahead and check it out!

1reaction
shamasiscommented, Jan 6, 2017

The fix isn’t ready. Releasing a patch today.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found