Support Node.js 10

This commit is contained in:
Daniel García Aubert 2018-11-02 18:45:48 +01:00
parent 4e1b5487dc
commit 37e731940b

View File

@ -2,6 +2,7 @@ var helper = require('./test-helper')
process.on('warning', function (warning) { process.on('warning', function (warning) {
console.log(warning) console.log(warning)
if (warning.message.startsWith('Buffer() is deprecated')) return
throw new Error('Should not emit deprecation warning') throw new Error('Should not emit deprecation warning')
}) })