Skip to content

Commit

Permalink
Use Buffer.from
Browse files Browse the repository at this point in the history
  • Loading branch information
mischnic committed Jan 5, 2019
1 parent 08398bd commit ca537c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -2,7 +2,7 @@ module.exports = function () {
return {
dir: __dirname,
file: __filename,
buf: new Buffer(process.title).toString('base64'),
buf: Buffer.from(process.title).toString('base64'),
global: !!global.document
};
};
2 changes: 1 addition & 1 deletion packages/core/integration-tests/test/javascript.js
Expand Up @@ -802,7 +802,7 @@ describe('javascript', function() {
assert.deepEqual(output(), {
dir: path.join(__dirname, '/integration/globals'),
file: path.join(__dirname, '/integration/globals/index.js'),
buf: new Buffer('browser').toString('base64'),
buf: Buffer.from('browser').toString('base64'),
global: true
});
});
Expand Down

0 comments on commit ca537c0

Please sign in to comment.