HalidOdat
d9a81a94fd
Added documentation to NumOp, UnaryOp and BitOp
5 years ago
Noah
271e2b4da6
Put JSON functions on the object, not the prototype ( #325 )
...
* Move JSON functions to the object, not the prototype
* Fix Value.to_json and add JSON tests
* Update boa/src/builtins/json.rs
* Update boa/src/builtins/json.rs
* Update boa/src/builtins/json.rs
* Update json.rs
* Fix fmt issues.
Co-authored-by: Iban Eguia <razican@protonmail.ch>
Co-authored-by: HalidOdat <halidodat@gmail.com>
5 years ago
Iban Eguia
19fcd2837d
Fixing master build ( #342 )
...
* Fixing master build
* Using gh-pages as default branch
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
HalidOdat
74c7375a7a
Added logo and favicon to boa documentation ( #343 )
...
* Added logo and favicon to boa documentation
* Update lib.rs
5 years ago
Iban Eguia
91bece6f62
Improved CI workflows ( #330 )
5 years ago
Victor Tuekam
a9372b7779
Method parsing ( #339 )
5 years ago
HalidOdat
eb020d7f37
Fix #329 ( #334 )
5 years ago
HalidOdat
44de1901ea
Merge pull request #312 from jasonwilliams/fix_309
5 years ago
razican
33fce7f015
Added jemallocator only for Linux targets
5 years ago
Julian Laubstein
f5d332c86e
change boa cli binary name to just "boa" ( #326 )
5 years ago
Iban Eguia
05b8989efd
Changed the name of the `Symbol creation` benchmark ( #327 )
5 years ago
HalidOdat
7dd32a6859
Added continuous integration for windows ( #318 )
5 years ago
Iban Eguia
cb589cd8b7
Added more benchmarks ( #323 )
5 years ago
Iban Eguia
8574ea1768
Added more build profiles ( #290 )
5 years ago
HalidOdat
505df912ad
Fixed assign operator precedence ( #311 )
...
Co-authored-by: Iban Eguia <razican@protonmail.ch>
5 years ago
Radek Krahl
9c638cc14f
Implement do..while loop ( #306 )
...
Co-authored-by: HalidOdat <halidodat@gmail.com>
Co-authored-by: Iban Eguia <razican@protonmail.ch>
Co-authored-by: Iban Eguia <razican@protonmail.ch>
5 years ago
Jason Williams
2ca60ce196
Update CHANGELOG.md
5 years ago
Jason Williams
8b9f761644
Update README.md
5 years ago
Jason Williams
5885e1bca3
v0.7.0
5 years ago
Jason Williams
ea127b3d75
updated to playground output
5 years ago
Jason Williams
ad0d132650
updating yanr lock
5 years ago
Jason Williams
1184456ab7
update changelog for upcoming 0.7.0 ( #271 )
...
* update changelog for v0.7.0
5 years ago
Jason Williams
a0db788ed6
adding test for #273 ( #313 )
5 years ago
Jason Williams
0274858d88
Revert "Use jemallocator ( #298 )" ( #310 )
...
This reverts commit 795a70ec89
.
5 years ago
HalidOdat
f1f49d14ba
Fixed center alignment of logo. ( #305 )
5 years ago
Iban Eguia
48ab045ac2
Updated contribution documentation ( #297 )
5 years ago
Iban Eguia
38db4dc316
Added a test for #208 ( #303 )
5 years ago
Iban Eguia
795a70ec89
Use jemallocator ( #298 )
...
Added jemallocator as the global allocator for binary and benchmarks
5 years ago
Jason Williams
8002a959a0
Update CONTRIBUTING.md
5 years ago
Iban Eguia
4ed7122199
Fixed positions in regexes and strict operators. ( #295 )
...
I also removed an unused function in the parser and added a test for #294 , currently ignored.
5 years ago
Jason Williams
8943953a79
fix vulnerabiliies via upgrade
5 years ago
HalidOdat
c365576f37
Implemented the Array.prototype.some method. ( #280 )
...
- Implementd Array.prototype.some method.
- Added tests for Array.prototype.some method.
5 years ago
Jason Williams
48c6e886d4
Parser fixes #225 #240 #273 ( #281 )
...
New parser!
Plus loads of tidy up in various places.
Co-authored-by: Jason Williams <jwilliams720@bloomberg.net>
Co-authored-by: HalidOdat <halidodat@gmail.com>
Co-authored-by: Iban Eguia <iban.eguia@cern.ch>
Co-authored-by: Iban Eguia <razican@protonmail.ch>
5 years ago
HalidOdat
5a85c595d4
Added the ability to dump the token stream or ast in bin. ( #278 )
...
* Added the ability to dump the token stream or ast in bin.
The dump functionality works both for files and REPL.
With --dump-tokens or -t for short it dumps the token stream to stdout and --dump-ast or -a for short to dump the ast to stdout.
The dumping of tokens and ast is mutually exclusive. and when dumping it wont run the code.
* Fixed some issues with rustfmt.
* Added serde serialization and deserialization to token and the ast.
* Added a dynamic multi-format dumping of token stream and ast in bin.
- Changed the --dump-tokens and --dump-ast to be an optional argument that optionally takes a value of format type ([--opt=[val]]).
- The default format for --dump-tokens and --dump-ast is Debug format which calls std::fmt::Debug.
- Added Json and JsonMinified format for both dumps, use serde_json internally.
- It is easy to support other format types, such as Toml with toml-rs for example.
* Made serde an optional dependency.
- Serde serialization and deserialization can be switched on by using the feature flag "serde-ast".
* Changed the JSON dumping format.
- Now Json dumping format prints the data in minefied JSON form by default.
- Removed JsonMinified.
- Added JsonPretty as a way to dump the data in pretty printed JSON format.
* Updated the docs.
5 years ago
Nick Vernij
9b8c803bbe
Add methods with f64 std equivelant to Math object ( #260 )
...
* Add methods with f64 std equivelant to Math object
* Add testS for Math static methods
5 years ago
HalidOdat
f53b352a4e
Added a logo to the project. ( #277 )
...
* Added a logo to the project.
* Changed the logo from a png to a svg.
5 years ago
dependabot[bot]
62383f5a06
Bump acorn from 6.4.0 to 6.4.1 ( #275 )
...
Bumps [acorn](https://github.com/acornjs/acorn ) from 6.4.0 to 6.4.1.
- [Release notes](https://github.com/acornjs/acorn/releases )
- [Commits](https://github.com/acornjs/acorn/compare/6.4.0...6.4.1 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years ago
Nick Vernij
2d5bf55956
Fix parsing of floats that start with a zero ( #272 )
5 years ago
Nick Vernij
6fa8d484a9
Implement Array.prototype.filter ( #262 )
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
John Doneth
d92da39299
Add print & REPL functionality to CLI ( #267 )
...
* Add basic REPL functionality
* Add utility function to Realm
* Rework flow to allow files to be loaded as well as open a shell
* Remove shell option (not needed now its the default)
* Update README.md & docs/debugging.md
5 years ago
Iban Eguia
f628f4cc8c
Fixed empty returns ( #251 ) ( #257 )
5 years ago
Iban Eguia
86052d6d75
Moved test modules to their own files ( #258 )
5 years ago
Iban Eguia
12c99e1658
Fixed comments lexing ( #256 )
5 years ago
Nathaniel
fd616c887b
Fixed more Lexer Panics ( #244 )
...
* Fixed more Lexer Panics
5 years ago
Jason Williams
edab5ca6cc
Removing debug output, switch to normal
5 years ago
Alexandre GOMES
92a63b20ea
fix(parser): handle trailing comma in object literals ( #249 )
5 years ago
Jason Williams
686d17a002
creating trait for object-internal-methods
5 years ago
Jason Williams
4c18f3acda
updating launch.json for workspace setup
5 years ago