We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
eslint-disable
polyfill.js
1 parent 1192e1f commit 8af1610Copy full SHA for 8af1610
lib/node_modules/@stdlib/buffer/from-string/lib/polyfill.js
@@ -49,9 +49,9 @@ function fromString( str, encoding ) {
49
if ( !isString( encoding ) ) {
50
throw new TypeError( format( 'invalid argument. Second argument must be a string. Value: `%s`.', encoding ) );
51
}
52
- return new Buffer( str, encoding ); // eslint-disable-line no-buffer-constructor
+ return new Buffer( str, encoding );
53
54
- return new Buffer( str, 'utf8' ); // eslint-disable-line no-buffer-constructor
+ return new Buffer( str, 'utf8' );
55
56
57
0 commit comments