mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-09-30 09:17:09 +08:00
This reverts commit 4df552c652.
Reason for revert: Breaks esprima.
Original change's description:
> Updates node_modules and update script
>
> Change-Id: I3fcf49bc416301a030d298cfc48c448bfeba4335
> Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/1878808
> Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
> Reviewed-by: Yang Guo <yangguo@chromium.org>
> Commit-Queue: Paul Lewis <aerotwist@chromium.org>
TBR=yangguo@chromium.org,aerotwist@chromium.org,tvanderlippe@chromium.org
Change-Id: Iad2bcdf98a486476715d1e829cdce450c5f218af
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/1880098
Reviewed-by: Lorne Mitchell <lomitch@microsoft.com>
Commit-Queue: Lorne Mitchell <lomitch@microsoft.com>
Buffer Fill
A ponyfill for Buffer.fill.
Works as Node.js: v6.4.0
Works on Node.js: v0.10.0
Installation
npm install --save buffer-fill
Usage
const fill = require('buffer-fill')
const buf = Buffer.allocUnsafe(5)
console.log(buf.fill(8))
//=> <Buffer 08 08 08 08 08>
console.log(buf.fill(9, 2, 4))
//=> <Buffer 08 08 09 09 08>
console.log(buf.fill('linus', 'latin1'))
//=> <Buffer 6c 69 6e 75 73>
console.log(buf.fill('\u0222'))
//=> <Buffer c8 a2 c8 a2 c8>
API
fill(buf, value[, offset[, end]][, encoding])
value<String> | <Buffer> | <Integer> The value to fillbufwithoffset<Integer> Where to start fillingbuf. Default:0end<Integer> Where to stop fillingbuf(not inclusive). Default:buf.lengthencoding<String> Ifvalueis a string, this is its encoding. Default:'utf8'- Return: <Buffer> A reference to
buf
Fills buf with the specified value. If the offset and end are not given,
the entire buf will be filled. This is meant to be a small simplification to
allow the creation and filling of a Buffer to be done on a single line.
If the final write of a fill() operation falls on a multi-byte character, then
only the first bytes of that character that fit into buf are written.
See also
- buffer-alloc-unsafe A ponyfill for
Buffer.allocUnsafe - buffer-alloc A ponyfill for
Buffer.alloc - buffer-from A ponyfill for
Buffer.from