If I compile this source code and output the bytecode on a file.
local test = "wat"
function modify()
test = "modified"
end
modify()
luau_load can't load this bytecode
Now, I am not sure if this is an issue, since I don't think Luau has a command line to export bytecode, but I did modify it to export it, so I am not sure. It looks like the bytecode must be different when Luau compiles it, it's a bit strange.
But there were some tests inside of Compile.test.cpp but this is at compile time... So I am not sure.
If I compile this source code and output the bytecode on a file.
luau_load
can't load this bytecodeNow, I am not sure if this is an issue, since I don't think Luau has a command line to export bytecode, but I did modify it to export it, so I am not sure. It looks like the bytecode must be different when Luau compiles it, it's a bit strange.
But there were some tests inside of
Compile.test.cpp
but this is at compile time... So I am not sure.