Callum Ward
1455ef0dc6
Implement bare Array object with prototype field ( #51 )
...
* First draft of Array prototype object
* First draft of Array prototype object
* Update to working Array object
* Remove unneeded HashMap import
* Fix indexing by removing private internal HashMap
* Fix formatting issues with cargo fmt
6 years ago
Callum Ward
28774ff973
Add abilityto specify a file to read from ( #41 )
6 years ago
Jason Williams
2cc4c6fafb
next is already sitting at correct token, no need to advance. Fixes #38
6 years ago
Atul Bhosale
313fe0a390
Change all r#try! to ? ( #37 )
6 years ago
Callum Ward
fda8571e52
concat(), repeat(), slice() and all "searchString" based String prototype methods ( #13 ) ( #31 )
...
* New concat() and repeat() String prototype implementations
Created new implementations for the JS String prototype which are added
in the string.rs file. Currently not tested.
* Add additional implementation of slice()
* Fix typo which mixed up start and end of slice
* Simplify slice() implementation
* Implementation of String.prototype.startsWith()
* Add implementation of endsWith()
* Implementation of String.prototype.includes()
* Implementation of String.prototype.{indexOf, lastIndexOf}()
* Fix merge conflict missing closing brace
6 years ago
Lennart Buit
5cfa527729
Add trim/trimStart/trimEnd to string prototype ( #30 )
6 years ago
Damian Senn
2b334a21d1
Allow numbers without decimal digits to be followed by a dot ( #27 )
6 years ago
Damian Senn
3aa4d4091b
Fix some cases in value is_true() ( #28 )
6 years ago
Jason Williams
61ab26e5b0
all punctuator symbols supported and tested
6 years ago
Jason Williams
1e81a7a379
adding this.next()
6 years ago
Jason Williams
383057c7aa
alphabetical ordering of punctuation, all keywords added, support for spread operator, new tests for punctuation (WIP)
6 years ago
Jason Williams
7177a3fc5d
changing preview_next() to return Option and next_is to bool ( #26 )
6 years ago
Jason Williams
811ffe5d7d
all number types tested ( #24 )
6 years ago
Jason Williams
135db5ef9a
removing criterion
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
618dda518d
updating wasm output
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
2e319cbf6e
0.1.6 plus string commenting tidyup
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
2edb8ac7cb
better description of PROTOs
6 years ago
Jason Williams
7fcc048cf2
added comments to object static vars
6 years ago
Jason Williams
df8e58212f
adding conversions for usize (preperation for charAt implemetation)
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
Hayden Hong
bd6feb681a
migrate from 'time' to 'chrono', fixes issue #3
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
李冬冬
8a55a822b1
bugfix: Punctuator::Dec used correctly
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
8f74c5428c
updates
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
f0096c97c4
errors fixed
6 years ago
Jason Williams
9686d4419b
cleaning up errors
6 years ago
Jason Williams
a47d710754
update
6 years ago
Jason Williams
b8b6964bc9
bug fixes
6 years ago
Jason Williams
e63b3e76d4
resolved many errors
6 years ago
Jason Williams
1b9dd477d7
updates
6 years ago
Jason Williams
73f427f766
adding as NativeFunctionData
6 years ago
Jason Williams
acf33efcc9
reduced errors
6 years ago