aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/node/buffer.js
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-11-03 00:18:26 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-11-03 00:18:26 -0700
commit6142715c06d5eb3dbaa07901a6281ae1394483a9 (patch)
treec549d8597ba4f89b1e3a19efdcd2351297d5b5cb /src/bun.js/node/buffer.js
parent34e130a3e0cb251cb163071b75228c6d521edf95 (diff)
downloadbun-6142715c06d5eb3dbaa07901a6281ae1394483a9.tar.gz
bun-6142715c06d5eb3dbaa07901a6281ae1394483a9.tar.zst
bun-6142715c06d5eb3dbaa07901a6281ae1394483a9.zip
Introduce `import.meta.primordials` for builtin JS
the `import.meta` object in Bun now has a `primordials` object which makes a handful of globals safe for access. Inside of bun: or node: modules, it is a special object (ownKeys is not implemented, so Object.keys() wont work on it) - Array - String - `isPromise` - `isCallable` - `isConstructable` - `tryGetById(foo, "bar')` which is like foo?.bar - `arrayPush` which is like `Array.prototype.push` - `Bun` - `isAbortSignal` cc @ThatOneBro @lawrencecchen
Diffstat (limited to 'src/bun.js/node/buffer.js')
0 files changed, 0 insertions, 0 deletions