…t line says, text evaluated among parameters has variables of its own, and a frame inside a library module is shown as `bun run` shows it [skip size check]
- A file that starts with `// @bun` is the kind of module that its first line says, as under `bun run`: CommonJS with `@bun-cjs`, else an ES module, whatever its extension, its package's "type" and its text say. In such an ES module `require`, `module`, `exports`, `__filename` and `__dirname` are free names, and in text that runs as written a `/* @__PURE__ */` comment removes no call.
- A sloppy function with expressions among its parameters has two objects for the variables of evaluated text: one for text evaluated in the body, one for text evaluated among the parameters, and the parameters lie between. A mention among the parameters of a function whose body alone evaluates text is resolved at build time.
- A string, a number or a template without substitutions in brackets as the key of a pattern among the parameters counts as an expression among the parameters, so the body has its own variable environment.
- A frame inside a module of the library is shown as `bun run` shows it: the name that $toClass() gave until somebody looks for `name`, the public path of the module (internal:util/deprecate), and the line and column of the text that `bun run` evaluates. Bun's build reads the bundler's source map and writes, a module, the pieces of the written text that stand alike in the evaluated text (record `positions`, manifest format 6).
- node:path: whether an operand is ASCII is asked on the scan that is made anyway (new kernel highway_index_of_untidy_slash_or_non_ascii). basename, dirname and extname ask it of the answer alone, and resolve() does not scan the working directory by itself. In an executable, a path that the disk lacks is judged by the kernel and compared with the keys without a copy.
- Which enum a path of names reads is found as the transpiler finds it (Checker::resolve_member_path()): the first name by its value binding, `["name"]` as `.name` at every link, parentheses, `as` and `!` do not count, and an optional link or a link that is an alias ends the path.
- What the program can reach: a member of what require() answers that is bound to the namespace object of another module (`export * as ns from`, `import * as ns; export { ns }`, renamed, two links deep) asks for that module's exports as an import of the namespace does, and the files between are reached. The same holds for the module.exports of a CommonJS file that is handed on as a name.
- An arrow function that a derived constructor makes behind its one `super(..)` copies `this` where that call is an expression statement of the constructor's own code under no branch, loop, try, switch, label or with, and nothing else may bind `this`.
- The storage of every `accessor` field counts as a field also in a class below another, so a subclass whose only instance members are accessors calls its initializer where `this` is bound.
- node:http: the ticks behind the end() of a response that takes no stores are ticks of the queue (queueTickInFront() in tick_ring.ts). A ServerResponse that is constructed below an heir or called as a function makes each store of the constructor in order through the heir's accessors. writeHead() takes its short road only where `hasHeader` is OutgoingMessage's and `headersSent` reaches the accessor of ServerResponse.prototype.
- Stack frames: the front end says whether an await is written in an async function as `bun run` keeps its text (has_live_await()). The copy of a spread that begins with a parenthesis behind another member is reported at the last token of that member, an operator or a member that is printed as a literal leaves no record, and `export default value` leaves the record of its store.
- Stack frames: a constant that holds undefined is reported at the `void 0` that is printed in its place, and the name of a compiled frame is asked for with the word that its callee lies in a frame.
- Stack frames: in text that runs as written (a file marked `// @bun`, the text of eval or new Function known at build time) names that are read, stored, counted or bound, shorthand members, compound assignments, spreads, super(..), binary operators, `in`, instanceof, the rest of an object pattern and class declarations are reported at the engine's own place.
- The scope walk, by which a closure copies a name whose last store stands ahead of its making, goes in the order in which the program runs: the value ahead of a pattern that is assigned to, the keys and defaults of declared patterns as they run, the initializer of `for (var x = .. in ..)` first, the stores of a decorated class at the end of the class, and the `key` of a JSX element behind the other attributes and the children. Five programs and three unit tests.
- What the program can reach: in a package that says "sideEffects": false, a member that is read off a namespace which comes through other files asks for the evaluation of the module whose namespace it is and of the files between, as an import of the namespace does. One program.
- Stack frames: in text that runs as written `#name in value` is reported at the last place recorded in its right operand. Three more lines in the program for the output of `bun build`.
- Stack frames: in text that runs as written a class declaration without a name is reported at `class`.
- Docs: rows for a namespace of types alone with a dotted name, the sign and payload of a NaN that is read from a float view or a DataView, JSON.stringify() of an object that holds a string of 358 million characters or more, eval(text) in a computed key or the extends clause of a class in sloppy-mode code, an accessor field in a subclass whose super() stands inside a statement, and `[f, g][1]()`.
- Docs: rows for `function f(a, a) {}`, `arguments = 1` and `eval++` in sloppy-mode code, `"use\x20strict"` and `("use strict")`, a continue to the outer of two labels, `for (using of ..)` and `for await (async of ..)`, a template or `new` behind `(a?.b)`, `x <!--y` in a .ts file, and texts outside the language that stop the build.
- Docs: rows for text among the parameters that declares a name which exists further out, text in a body that declares the name of a parameter beside a rest parameter or a pattern, an enum member set from a path with brackets, an enum member as callee or as tag, and a const enum in a namespace of another file or behind an `import =` alias.
- Tests: generators for built-ins that write to what they are handed with reads beside the call, and for short histories of an object that is handed to nobody; the generator of optional chains asks endsWith(). Sixteen stored programs for rows of the compatibility page, and programs for the new rows.
- Tests: programs for marked files, evaluated text among parameters and behind a literal key in brackets, enums read by paths in brackets and under a variable named like their namespace, arrow functions that constructors store, accessor fields alone, stack positions of spreads, of initializers printed as literals and of conversions in default exports, and names in frames of async functions that never reach their await.
- Tests: programs for frames inside library modules, stack positions of constants that hold undefined and of names, stores, operators and spreads in the output of `bun build`, and namespaces that a module exports again and require() reads; unit tests for the positions that are sent and for the manifest of the built-in sources.
- Tests: programs for what the engine now does: names and stack frames of new function objects whose names are read, jobs of an imported file that throws, a literal that takes a wrapped number with every pass checked, the ISO text of a date on every way to the built-in, names and files in the stacks of exceptions that host functions make, a function expression of bun:wrap that is constructed, functions that come out of all the descriptors of an object and are renamed, what the species of a pattern answers, and what a closure that nobody calls had captured. Three .ir files carry the new numbers of the compiler's own functions.
- Tests: more programs for what the engine now does: what a function reads no more is collected while the first async function of a program waits and while an async generator that waited runs, members of console and process take numbers and texts through a value nobody knows, a loader that a closure captured or a function was handed, the pair of Proxy.revocable, operators that alter at most the sign of a value written into a float view, function objects that are only lent among others with a display name, and exports behind a namespace object that is the receiver of calls. Sixteen .ir files for the reads of modules under all four schedules, and ten hold the module in a variable.
- Tests: pins for a module that a require() finds in a graph that is being loaded (a lower bound), the name of a new closure, dates, fifteen idioms of paths and files, copies of ordinary objects in cold code, 51 small benchmarks of microtasks and promises, and the async forms of iteration. Nine checks of the shape of code are judged again, and in the program of stars that are looked at late each look stands in a function that is handed its own barrel.
- Tests: node:path with one character outside ASCII at every position of a name, the new kernel in every sweep of highway-strings.test.ts, strings parsed from JSON as they are inspected; node:http: every name in the stack of a closed response, the stores of the response constructor, what writeHead() reads, and stored outputs for objects closed through proxies and for frozen, sealed and closed objects.
- Tests: the program in which a name is deleted by key is judged.
- Tests: fourteen programs in which a built-in constructs what it is handed.
- Tests: a program and a pin for instances of classes that are spread under a declared type.
- Tests: the folder that packed programs are written to stays until the last block that lists them has ended.
- Tests: programs in which a class is constructed for a class below, beside or above it, and classes below one function for each other.
- Tests: a generator for built-ins that call something of the program through a protocol, or write into an object that they are handed back, while the program holds that object and reads it beside the call.
- Tests: the program in which a record that holds itself is written with an indent again and again is judged.
- WebKit: d8ae70ab.