Skip to content

Use WASM version of Lua instead of fengari for testing - #996

Merged
Perryvw merged 11 commits into
TypeScriptToLua:masterfrom
lolleko:test-wasm-lua-vm
Mar 4, 2021
Merged

Use WASM version of Lua instead of fengari for testing#996
Perryvw merged 11 commits into
TypeScriptToLua:masterfrom
lolleko:test-wasm-lua-vm

Conversation

@lolleko

@lolleko lolleko commented Mar 3, 2021

Copy link
Copy Markdown
Member

WASM bindings are in a separate repo and published to NPM.

https://github.com/TypeScriptToLua/lua-wasm-bindings

https://www.npmjs.com/package/lua-wasm-bindings

Multi version testing will be done in a different PR.

@lolleko lolleko added the scope: infrastructure Tests, benchmarks, CI/CD label Mar 3, 2021
lolleko added 4 commits March 3, 2021 14:57
Most of the tests failed due to incorrect iteration order
And unexpected JS/Lua differences
@lolleko
lolleko marked this pull request as ready for review March 3, 2021 16:51
@lolleko
lolleko requested review from Perryvw and tomblind March 3, 2021 17:03
Comment thread test/util.ts Outdated
/* eslint-disable jest/no-standalone-expect */
import * as nativeAssert from "assert";
import { lauxlib, lua, lualib, to_jsstring, to_luastring } from "fengari";
import { lauxlib, lua, lualib } from "lua-wasm-bindings/dist/lua.54";

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As we discussed on discord, please use 5.3 for tests as long as we do not officially support 5.4 yet. (I'd also be fine with another PR that adds 5.4 as supported LuaTarget)

@Perryvw
Perryvw merged commit 22e6019 into TypeScriptToLua:master Mar 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: infrastructure Tests, benchmarks, CI/CD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants