@@ -4,31 +4,18 @@ title: Caveats
44
55## Feature support
66
7- | Feature | Lua 5.1 | Lua 5.2 | Lua 5.3 | LuaJIT |
8- | --------------------- | :-----: | :-----: | :-----: | :----: |
9- | (Everything else) | ✔️ | ✔️ | ✔️ | ✔️ |
10- | [ Bitwise operators] | ❌ | ✔️ | ✔️ | ✔️ |
11- | [ Switch statement] | ❌ | ✔️ | ✔️ | ✔️ |
12- | [ ` continue ` ] | ❌ | ✔️ | ✔️ | ✔️ |
13- | [ ` Promise ` ] | ❌ | ❌ | ❌ | ❌ |
14- | [ ` async ` ] / [ ` await ` ] | ❌ | ❌ | ❌ | ❌ |
15- | [ Regular Expressions] | ❌ | ❌ | ❌ | ❌ |
16- | [ Optional Chaining] | ❌ | ❌ | ❌ | ❌ |
17- | [ Nullish Coalescing] | ❌ | ❌ | ❌ | ❌ |
18- | [ Private Fields] | ❌ | ❌ | ❌ | ❌ |
19- | [ JSX] | ❌ | ❌ | ❌ | ❌ |
20-
7+ | Feature | Lua 5.1 | Lua 5.2 | Lua 5.3 | LuaJIT |
8+ | ------------------- | :-----: | :-----: | :-----: | :----: |
9+ | [ Missing features] | ❌ | ❌ | ❌ | ❌ |
10+ | [ Bitwise operators] | ❌ | ✔️ | ✔️ | ✔️ |
11+ | [ Switch statement] | ❌ | ✔️ | ✔️ | ✔️ |
12+ | [ ` continue ` ] | ❌ | ✔️ | ✔️ | ✔️ |
13+ | (everything else) | ✔️ | ✔️ | ✔️ | ✔️ |
14+
15+ [ missing features ] : https://github.com/TypeScriptToLua/TypeScriptToLua/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3A%22missing+feature%22
2116[ bitwise operators ] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Bitwise_Operators
2217[ switch statement ] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/switch
2318[ `continue` ] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/continue
24- [ `promise` ] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise
25- [ `async` ] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function
26- [ `await` ] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/await
27- [ regular expressions ] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions
28- [ optional chaining ] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining
29- [ nullish coalescing ] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Nullish_coalescing_operator
30- [ private fields ] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/Class_fields#Private_fields
31- [ jsx ] : https://www.typescriptlang.org/docs/handbook/jsx.html
3219
3320## Differences from JavaScript
3421
0 commit comments