Sign in
chromium
/
devtools
/
devtools-frontend
/
refs/heads/chromium/4635
/
.
/
node_modules
/
fs-extra
/
lib
/
util
/
buffer.js
blob: dabf2885c9030e4bb3d5bf889d0a2ac7dcef6e17 [
file
] [
log
] [
blame
] [
edit
]
'use strict'
/* eslint-disable node/no-deprecated-api */
module
.
exports
=
function
(
size
)
{
if
(
typeof
Buffer
.
allocUnsafe
===
'function'
)
{
try
{
return
Buffer
.
allocUnsafe
(
size
)
}
catch
(
e
)
{
return
new
Buffer
(
size
)
}
}
return
new
Buffer
(
size
)
}