Commit Graph

16 Commits

Author SHA1 Message Date
6f548ce5ff
feat: reflect scope optimizations in runtime 2024-09-05 22:30:28 +03:00
7c74df4d36
refactor: use new system to reorder variables that overlaps neighboring scopes 2024-09-05 21:25:39 +03:00
0004839f6f
fix: realloc for declarations after each iteration 2024-09-05 17:15:26 +03:00
07411f62c8
feat: implement capturable locals realloc 2024-09-05 17:14:59 +03:00
4bfc062aaf
fix: correctly flatten locals in control flow statements 2024-09-05 17:13:34 +03:00
9ec99def3f
fix: variable declarations shouldn't collide with defined name of named function exp 2024-09-05 13:29:42 +03:00
8f13ff3e0b
fix: scope gets polluted by arguments with named function expressions 2024-09-05 13:29:20 +03:00
d7353e19ed
fix: treat "arguments" as a keyword (as per strict soecifications) 2024-09-05 13:18:53 +03:00
e509edc459
fix: wrong arguments when compilling function bodies 2024-09-05 13:03:49 +03:00
b6a90b108b
fix: wrong check for var decl collisions 2024-09-05 13:03:36 +03:00
55caf1e206
refactor: remove unneeded old comments 2024-09-05 13:03:04 +03:00
eac4a3af23
fix: throw access before decl for const and let in runtime 2024-09-05 00:31:03 +03:00
5b4adf5286
a clusterfuck of fixes with let and const 2024-09-05 00:28:13 +03:00
9265a7d813
Merge branch 'master' into ES6 2024-09-04 15:52:03 +03:00
1589ef51b0
refactor: move src and resources to standard places 2024-09-04 15:32:54 +03:00
marregui
313b20a3b3
Add first test (#23)
* Add the first test and upgrade build.gradle to modern standards

1. gradle wrapper
2. ./gradlew run
3. manifest will look like
    Manifest-Version: 1.0
    Main-Class: me.topchetoeu.jscript.runtime.SimpleRepl
    Build-Timestamp: 2024-09-04T10:44:35.990+0200
    Build-Branch: ma/add-first-tests
    Build-Revision: 412edc0ebc
    Build-Jdk: 21.0.3 (Oracle Corporation 21.0.3+7-LTS-152)
    Build-Author: TopchetoEU
4. build/distributions contains a zip and a jar which contain jscript-0.9.41-beta.jar
5. unnecessary libs have been removed
6. gradle has been updated to 8.10
7. first test has been added

* fix: revert removal of Jabel (for support of Java 11)

---------

Co-authored-by: TopchetoEU <36534413+TopchetoEU@users.noreply.github.com>
2024-09-04 15:29:17 +03:00