José Julián Espina
34d6b93f36
Fix cross-realm construction bugs ( #2786 )
...
This Pull Request fixes test [`assert-throws-same-realm.js`](eb44f67274/test/harness/assert-throws-same-realm.js
).
It changes the following:
- Handles global variables through the global object, instead of the `context`.
- Adds an `active_function` field to the vm, which is used as the `NewTarget` when certain builtins aren't called with `new`.
- Adds a `realm_intrinsics` field to `Function`.
2 years ago
Jason Williams
1a257b52ce
VM Tidy Up ( #1610 )
...
* - add trace to VSCode launch
- comment out pushUndefined and Return
- Move call frame to its own file
- heading for code blocks needed to be on its own line
- Show the difference between the VM starting up and a new Call frame being ran
* add back in return opCodes
* Update boa/src/vm/mod.rs
Co-authored-by: João Borges <rageknify@gmail.com>
3 years ago
Jason Williams
ce78947fce
update launch.json ( #1034 )
...
- cpp version is no longer needed
- add VM launch config using cargo args
4 years ago
Iban Eguia
1673871116
Some cleanup ( #666 )
4 years ago
HalidOdat
5d4d8fe794
Refactor Property Descriptor flags ( #553 )
4 years ago
Paul Lancaster
542b2cc005
Switch impl ( #451 )
...
Co-authored-by: Iban Eguia <razican@protonmail.ch>
4 years ago
Iban Eguia
4beadfc9ad
Execution and Node modularization ( #392 )
5 years ago
Iban Eguia
bc63b28b6b
Modularized parser ( #304 )
5 years ago
Radek Krahl
7abb94abf5
console functions ( #315 )
...
* Exec do..while tests.
* Parser do..while test.
* Do..while loop parser and exec implementation
* rustfmt fixes
* Update boa/src/exec/mod.rs
Co-Authored-By: HalidOdat <halidodat@gmail.com>
* Use expect(), make expect() skip newlines
* rustmf fixes
* Revert "Use expect(), make expect() skip newlines"
This reverts commit 517c4d0e06
.
* Cargo Test Build task and Debug Test (Windows) launcher
* First attempt at console.assert implementation. Tests are just for
debugging. Run `cargo test console_assert -- --nocapture` to see stderror
messages.
* Refactoring - remove unnecessary map, variable rename.
* Update boa/src/builtins/console.rs
changes from HalidOdat
Co-Authored-By: HalidOdat <halidodat@gmail.com>
* Documentation fixes
* Remove space from documentation comment
* Update boa/src/builtins/console.rs
Simplify message printing.
Co-Authored-By: Iban Eguia <razican@protonmail.ch>
* Update boa/src/builtins/console.rs
Improve docs.
Co-Authored-By: Iban Eguia <razican@protonmail.ch>
* Update boa/src/builtins/console.rs
Improve getting of assertion result.
Co-Authored-By: Iban Eguia <razican@protonmail.ch>
* rustfmt
* console.count() and console.countReset() implementation
* Console state as native rust type, temporarily placed in Realm.
* console.time[,Log,End] methods implementation
* ConsoleState as internal state in console object.
* Fix merge mess
* Formatter function, get_arg_at_index moved out to function
* Fix merge mess, pt. 2
* console.group* functions
* Moved console code to its own subdirectory, formatter tests, fixed utf-8
handling.
* Most functions implemented.
* Basic logger and logLevel implementation
* console.group uses logger
* console.dir (and at the same time dirxml) implementation
* Make builtins::value::display_obj(...) public
* Update boa/src/builtins/console/mod.rs
Co-Authored-By: HalidOdat <halidodat@gmail.com>
* Update boa/src/builtins/console/mod.rs
Co-Authored-By: HalidOdat <halidodat@gmail.com>
* Update boa/src/builtins/value/mod.rs
Co-Authored-By: Iban Eguia <razican@protonmail.ch>
Co-authored-by: HalidOdat <halidodat@gmail.com>
Co-authored-by: Iban Eguia <razican@protonmail.ch>
5 years ago
Jason Williams
9766409c52
Addition of forEach() ( #268 )
...
* Addition of forEach()
* fixing LLDB launcher for windows (it needs .exe to work for windows)
5 years ago
Jason Williams
4c18f3acda
updating launch.json for workspace setup
5 years ago
Jason Williams
bb9391ef86
fix git checkout (benchmark action), try v2
5 years ago
Jason Williams
3465e6bbca
short function syntax fixes #152 ( #199 )
...
* short function syntax
* updating parser plus adding test
5 years ago
Jason Williams
6c31e52b23
adding Dockerfile for rust
6 years ago
Jason Williams
c10c0f7c6a
updates
6 years ago
Jason Williams
14aaec6aff
working lexer
6 years ago