Jason Williams
d4791837db
[WIP] - addition of Symbols ( #191 )
...
* Addition of Symbols
* Addition of Symbol benchmark
5 years ago
Elijah Caine M. Voigt
d725b0c769
Feature/number object ( #182 )
...
* Feature(Number): Tests for the Test Driven Development!
refs #34
* Feature: Skeleton code for Number
refs #34
* Feature: Most of Number() is complete
Includes:
- make_number()
- call_number()
- Number().toExponential()
- Number().toFixed()
- Number().toLocaleString() (ish)
- Number().toString()
- Number().valueOf()
- create_constructor()
- init()
Missing:
- Number().toPrecision()
refs #34
* Feature(Number): test compatability with const -> var
I don't have all the context on _why_ but all of the tests for `Number` started failing.
Upon investigation it was becuase `const` stopped acting the way I expected.
Switching my test cases from using `const` to using `var` variable declarations
made everything work again. I don't know enough about JS to know if this is a
bug or expected behavior. Based on changes to other tests, it is know
behavior.
Refs #34
* Changelog: Number() object.
Includes some clippy fixes.
Fixes #34
5 years ago
Jason Williams
3465e6bbca
short function syntax fixes #152 ( #199 )
...
* short function syntax
* updating parser plus adding test
5 years ago
Elijah Caine M. Voigt
d798566377
unassigned var is undefined ( #125 )
...
* Unassigned variables are set to `undefined` not `null`
Fixes #113
* Rust tests for `var x` and `let x` default to undefined
* CHANGELOG for issue #113 fix + add tests/js/test.js to gitignore.
5 years ago
Jason Williams
27178e1645
fixes #10 ( #112 )
5 years ago
Jason Williams
821632972b
Addition of arguments object ( #109 )
...
* testing PR
* making a start to arguments object
* arguments
* finishing arguments for now
5 years ago
Jason Williams
73d158cce2
testing small change ( #104 )
5 years ago
Jason Williams
910d20f6a5
support early returns, fixes #101
5 years ago
Jason Williams
e35b66b412
moving to function objects, work started on boashell other bug fixes
5 years ago
Jason Williams
c5b75c55ad
passing primitives to methods ( #86 )
...
* passing primitives to methods
* finishing unboxing_primitives, tests added, using internal_slots for __proto__
5 years ago
Jason Williams
903cbcdccc
Adding operations ( #85 )
...
* adding operations to exec
* using StringData instead of PrimitiveData (to match with spec)
* function signature changed to allow mutable ctx (this is needed for some functions)
* tidy (clippy)
* value to rust string (clippy)
* removing static lifetime - Not needed from Rust 1.36
5 years ago
Jason Williams
fe42b0c616
adding context into every native function, changing this to be passed… ( #73 )
5 years ago
Jason Williams
0e92d37756
Refactor objects ( #69 )
...
Refactoring Objects into Structs. Changing the way objects are accessed.
New `internal_slots` and `sym_properties` fields
5 years ago
Iban Eguia
71340e6bec
Fixed a bunch of Clippy issues ( #59 )
...
* Fixed a bunch of Clippy issues
* Fixed bug with numbers
* Added clippy checks in the CI
5 years ago
Iban Eguia
14672dd340
Parser tests ( #42 )
...
* First parser tests
* Added more parser tests
* Fixed formatting issue
* Added bitwise operators, removed debugging statement
5 years ago
Jason Williams
7177a3fc5d
changing preview_next() to return Option and next_is to bool ( #26 )
6 years ago
Jason Williams
5faef8bc22
better unicode escape support fixes #16 ( #20 )
...
* better unicode escape support fixes #16
* adding benchmarking, updating deps and added test for numbers
6 years ago
Jason Williams
741b55806e
arrow function is working
6 years ago
Jason Williams
600b4b4f9d
let and const now partially supported ( #18 )
6 years ago
Jason Williams
5ea6187315
web assembly demo updates
6 years ago
Jason Williams
f7be6f8118
adding Wasm-bindgen
6 years ago
Jason Williams
5664ea6d1b
Environment Records have been implemented (bar module), exec::scope has now been changed to Environment
6 years ago
Jason Williams
78d3cb910d
added support for char_code_at()
6 years ago
Jason Williams
64ab7b0133
added support for String.prototype.charAt()
6 years ago
Jason Williams
5ef57ffb90
reorganising unit tests into their respective files
6 years ago
Jason Williams
7ba514b416
string objects now display their primitive value, to_function() method has been added to value, test added for String()
6 years ago
Jason Williams
226ba4dcf3
no need for mutable in private_obj
6 years ago
Jason Williams
1f2815bea8
fixing decrementation and testing
6 years ago
Jason Williams
7c2aa5601d
creating String() constructor function
6 years ago
Jason Williams
5e4999c5fa
preparing for Rust 2018 and constructor work
6 years ago
Jason Williams
91f84e1000
changing to i32 to match spidermonkey
6 years ago
Jason Williams
6a1b081efd
fixed length
6 years ago
Jason Williams
f92be3bd21
string length now supported
6 years ago
Jason Williams
ef91d02a72
updating cargo lock
6 years ago
Jason Williams
8f74c5428c
updates
6 years ago
Jason Williams
cd2208c150
fixed tests and updated readme
6 years ago
Jason Williams
b73706aab1
change js file
6 years ago
Jason Williams
e99eac8af8
readme updates
6 years ago
Jason Williams
6b9fac0882
OMG it works
6 years ago
Jason Williams
607a6b8521
working on stdlib
6 years ago
Jason Williams
d49944d9a2
adding some tests
6 years ago
Jason Williams
47271d5f91
building up value
6 years ago
Jason Williams
b2b901f677
adding value.rs
6 years ago
Matt Young
ead794ceb6
Removed Position attributes from the Expr structs
6 years ago
Matt Young
a1b4d190ab
Remove calls to the mk macro on final returns in parser.rs
6 years ago
Jason Williams
6590416a40
bumping version
6 years ago
Jason Williams
cdf992a9ac
parser finished but runtime panics
6 years ago
Jason Williams
59d51a042f
parsing added
6 years ago
Jason Williams
016941301c
tests added for position
6 years ago
Jason Williams
9a50cc11c4
first test added
6 years ago