This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local bytecodes = {} | |
local BC, run_function = {} | |
local VARG_CONST = {} | |
local lujlu_mt_funcs | |
local lujlu_cache = setmetatable({}, {__mode = "k"}) | |
local lujlu_identifier_mt = { | |
__tostring = function(self) | |
return tostring(lujlu_cache[self].data) | |
end, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ES6 tl;dr; for beginners | |
// 1. variables | |
// `const` & `let` are scoped at the block level | |
if(true) { | |
let foo = "bar" | |
} | |
foo // ReferenceError | |