aboutsummaryrefslogtreecommitdiff
path: root/test/bun.js/import-meta.test.js (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-03-07Reorganize tests (#2332)Gravatar Ashcon Partovi 1-164/+0
2023-01-31Re-run prettier after changesGravatar Jarred Sumner 1-17/+5
2023-01-22Add a test for require with a query stringGravatar Jarred Sumner 1-0/+35
2023-01-18Add a test for #1831Gravatar Jarred Sumner 1-0/+6
2022-11-09Add bun-types, add typechecking, add `child_process` types (#1475)Gravatar Colin McDonnell 1-2/+2
* Add bun-types to packages * Improve typing * Fix types in tests * Fix dts tests * Run formatter * Fix all type errors * Add strict mode, fix type errors * Add ffi changes * Move workflows to root * Add workflows * Remove labeler * Add child_process types * Fix synthetic defaults issue * Remove docs * Move scripts * Run prettier * Include examples in typechecking * captureStackTrace types * moved captureStackTrace types to globals * Address reviews Co-authored-by: Colin McDonnell <colinmcd@alum.mit.edu> Co-authored-by: Dylan Conway <dylan.conway567@gmail.com>
2022-11-03Introduce `import.meta.primordials` for builtin JSGravatar Jarred Sumner 1-0/+4
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
2022-10-12Fix `require("bun")` and `import("bun")` when statically knownGravatar Jarred Sumner 1-0/+8
2022-09-04Some testsGravatar Jarred Sumner 1-0/+19
2022-09-03Fix `createRequire()` in `node:module`Gravatar Jarred Sumner 1-0/+11
Fixes https://github.com/oven-sh/bun/issues/831 Fixes https://github.com/oven-sh/bun/issues/453
2022-08-09[node compat] Implement `require.resolve`Gravatar Jarred Sumner 1-0/+16
2022-07-15Add a TLA testGravatar Jarred Sumner 1-0/+4
2022-06-24Add dynamic require supportGravatar Jarred Sumner 1-1/+41
2022-06-22change the directory structurejarred/renameGravatar Jarred Sumner 1-0/+33