mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Fix usage of deprecated Buffer APIs in render process
This commit is contained in:
@@ -177,7 +177,7 @@ exports.install = function (resourcesPath, nodeRequire) {
|
||||
var rawData = sourceMappingURL.slice(sourceMappingURL.indexOf(',') + 1)
|
||||
|
||||
try {
|
||||
var sourceMap = JSON.parse(new Buffer(rawData, 'base64'))
|
||||
var sourceMap = JSON.parse(Buffer.from(rawData, 'base64'))
|
||||
} catch (error) {
|
||||
console.warn('Error parsing source map', error.stack)
|
||||
return null
|
||||
|
||||
@@ -20,7 +20,7 @@ class FileSystemBlobStore {
|
||||
|
||||
reset () {
|
||||
this.inMemoryBlobs = new Map()
|
||||
this.storedBlob = new Buffer(0)
|
||||
this.storedBlob = Buffer.alloc(0)
|
||||
this.storedBlobMap = {}
|
||||
this.usedKeys = new Set()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user