diff options
author | 2022-11-03 00:18:26 -0700 | |
---|---|---|
committer | 2022-11-03 00:18:26 -0700 | |
commit | 6142715c06d5eb3dbaa07901a6281ae1394483a9 (patch) | |
tree | c549d8597ba4f89b1e3a19efdcd2351297d5b5cb /src/bun.js/node/buffer.js | |
parent | 34e130a3e0cb251cb163071b75228c6d521edf95 (diff) | |
download | bun-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