boa
boa copied to clipboard
Boa is an embeddable and experimental Javascript engine written in Rust. Currently, it has support for some of the language.
**Describe the bug** `boa_cli` crashes when the `.boa_history` does not exist. I think this was introduced in #1809 with the rustyline update. **To Reproduce** In the project directory you can...
Currently we only spread spread-expressions if they are the last argument in the function call. With this fix all arguments are spread if needed. The downside is that an array...
This Pull Request changes the following: - Implement parsing/cover-conversion for field accessor member expressions in [DestructuringAssignmentTarget](https://tc39.es/ecma262/#prod-DestructuringAssignmentTarget). - Modify the `CopyDataProperties` opcode to account for excluded keys that are only known...
This PR adds a safe wrapper around JavaScript `JsDate` from `builtins::date`, and is being tracked at #2098. #### Implements following methods - [x] `new Date()` - [x] `Date.prototype.getDate()` - [x]...
This Pull Request fixes #1560. It changes the following: - Implement `AsyncGeneratorFunction` builtin object. - Implement `AsyncGenerator` builtin object. - Implement async generator execution. - Add some parse errors for...
Hello, I'm building a small game engine for myself - think something between Love2D and TIC-80 - and reviewed a few scripting languages. I'd love to use Boa because it...
It changes the following: - Introduce `NonMaxU32` type - Use `NonMaxU32` for index property key instead of `u32` --- While looking into the failed `built-ins/Reflect/ownKeys/return-on-corresponding-order-large-index.js` in test262, I found that...
This is a retry of #1902. Depends on #1954. This PR adds ~~two~~ three experimental fuzzers which generate valid JavaScript code from Arbitrary structs. These fuzzers (or variants thereof) were...
For the function constructors we need to parse paramters at runtime e.g.: ```js const f = Function("a", "b = 1", "console.log(a, b, 'function body')") f("argA") // argA 1 function body...
This Pull Request fixes/closes #2148 . It changes the following: - Adds a test to the lexer showing that the lexar produces correct tokens - Removes `cursor.set_goal()` call from the...