debt - do not use deprecated Buffer() ctor

This commit is contained in:
Benjamin Pasero
2018-08-22 10:42:36 +02:00
parent 0bae86799f
commit 6607a81c12
7 changed files with 8 additions and 8 deletions

View File

@@ -202,7 +202,7 @@ gulp.task('editor-distro', ['clean-editor-distro', 'compile-editor-esm', 'minify
this.emit('data', new File({
path: data.path.replace(/monaco\.d\.ts/, 'editor.api.d.ts'),
base: data.base,
contents: new Buffer(toExternalDTS(data.contents.toString()))
contents: Buffer.from(toExternalDTS(data.contents.toString()))
}));
}))
.pipe(gulp.dest('out-monaco-editor-core/esm/vs/editor')),