-
Notifications
You must be signed in to change notification settings - Fork 225
Node 10 fix #212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Node 10 fix #212
Conversation
Thanks for the quick pull request! Could you use this module? https://www.npmjs.com/package/buffer-from |
Done |
source-map-support.js
Outdated
@@ -12,6 +12,8 @@ try { | |||
/* nop */ | |||
} | |||
|
|||
var newBuffer = require('buffer-from'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you mind renaming this to bufferFrom
or similar?
Just so that no-one confuses it with the new Buffer
interface which allows more calling conventions...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Time for native |
new Buffer() no longer works in Node 10. This should fix it.