mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-03-07 19:51:51 +09:00
basic: fixed a bug where empty string would be resolved to number zero; improving performance by building parsing trees prior to the actual execution
This commit is contained in:
@@ -53,7 +53,7 @@ object BasicRom : VMProgramRom {
|
||||
private val contents: ByteArray
|
||||
|
||||
init {
|
||||
val bytes = File("./assets/basic.js").readBytes()
|
||||
val bytes = File("./assets/bios/basic.bin").readBytes()
|
||||
contents = bytes.sliceArray(0 until minOf(65536, bytes.size))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user