Piotr
4f3ae3c630
Merge branch 'master' into codex/implement-thread-class-and-coroutine-integration
3 months ago
Piotr Wilczynski
256d5db51a
fix lint errors
3 months ago
Piotr
f5619ce591
Silence lint for main thread
3 months ago
Piotr
1165827c2e
feat: support extending loaded libs ( #31 )
3 months ago
Piotr
d6f4f9db44
Alphabetize utils imports in string library
3 months ago
Piotr
61366d4800
Add boolean argument coercion helper
3 months ago
Piotr
95b6489f18
fix string.find plain argument
3 months ago
铝箔
d121e74c6f
Fix: lazy evaluation for logical expressions ( #27 ) ( #28 )
...
* fix logical expression short-circuit evaluation (#27 )
* test logical short-circuit cases (#27 )
6 months ago
teoxoy
be4f0fa982
fix "Unexpected negated condition" lint
1 year ago
teoxoy
c2bc7cbe68
release v2.2.5
1 year ago
Keith
af1cc0328f
fix math.random
1 year ago
teoxoy
4c04718a44
release v2.2.4
2 years ago
teoxoy
ca94a68d03
fix logical operators evaluating their LHS twice
2 years ago
teoxoy
3d4f9e2865
release v2.2.3
2 years ago
Guilherme Bernal
f1401ec12b
fix setmetatable: allow metatable argument to be optional
2 years ago
teoxoy
a26c666001
release v2.2.2
2 years ago
Guilherme Bernal
9c0ac8baa1
fix: setmetatable should remove the metatable if the argument is null
2 years ago
Nicholas Husher
b9af44bfde
Transpile backtick characters (`) correctly into JS
...
In Lua they don't (appear?) to be syntactically relevant, but in JS they very much are, especially with the way that the Lua syntax is compiled into JS.
For example:
```lua
return "This is a `string with backticks` in it"
```
Is compiled to JS as:
```
return [`This is a `string with backticks` in it`]
```
Where "string with backticks" is evaluated as literal JS code. This is _potentially_ a security issue because a specially-formatted string could evaluate arbitrary JS code. More annoyingly, though, it means that any string with backticks in it is probably going to cause the JS interpeter to crash.
This commit fixes that by escaping backtick characters with a \, so the compiled JS above would instead look like:
```
return [`This is a \`string with backticks\` in it`]
```
Much better!
2 years ago
teoxoy
2f1cf03d42
release v2.2.1
2 years ago
teoxoy
aa30ee7de2
update rimraf
2 years ago
teoxoy
87d4243711
update printj
2 years ago
teoxoy
e79971fa30
update luaparse
2 years ago
teoxoy
210fecb11e
remove yarn
2 years ago
Jonathan Staab
bbd6356766
Update import syntax for printj to work with es modules
2 years ago
Teodor Tanasoaia
f083952b9f
fix import section
5 years ago
Teoxoy
944df7d97f
make linguist ignore lua test files
6 years ago
Teoxoy
993aca2c5f
change API to allow for parsing code once then executing multiple times
6 years ago
Teoxoy
b969443812
v2.1.1
6 years ago
Teoxoy
e45eda2b71
expose loadLib
6 years ago
Teoxoy
3d6f35a579
move getn and tostring out of Table file
6 years ago
Teoxoy
d26d88bde9
update dev deps
6 years ago
Teoxoy
8a4691f1a1
2.0.1
6 years ago
Teoxoy
7f603ec8d2
add files array for npm
6 years ago
Teoxoy
bc621b031c
align comments
6 years ago
Teoxoy
516327c274
typescript rewrite (v2)
6 years ago
Teodor Tanasoaia
624cf557d4
change code preview to JS
7 years ago
Teoxoy
fb56a71b47
new build (v1.1.0)
7 years ago
Teoxoy
dd8d12a6f9
fixed typo
7 years ago
Teoxoy
43f48cbdec
renamed package again
7 years ago
Teoxoy
c2e36b103c
renamed repo
...
published on npm
updated package.json
updated readme
7 years ago
Teoxoy
d3e72f32d2
updated dependencies
...
added more info to package.json
7 years ago
Teoxoy
a08efa6485
updated license
8 years ago
Teoxoy
8758cb300a
added usage example
8 years ago
Teoxoy
8b4035612a
included the license of the original library
8 years ago
Teoxoy
d5ccdbea3b
first commit
8 years ago