Skip to content

Remove noHoisting option#808

Merged
Perryvw merged 7 commits intoTypeScriptToLua:masterfrom
ark120202:remove-no-hoisting-option
Jan 21, 2020
Merged

Remove noHoisting option#808
Perryvw merged 7 commits intoTypeScriptToLua:masterfrom
ark120202:remove-no-hoisting-option

Conversation

@ark120202
Copy link
Copy Markdown
Contributor

Resolves #651.

`
.setLuaFactory(code => `return (function(...) ${code} end)("A", "B", "C", "D")`)
.tap(builder => expect(builder.getMainLuaCodeChunk()).not.toMatch("unpack"))
.expectToEqual({ result: "ABCD" });
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.

Can we not just expectToMatchJsResult()? I think this setLuaFactory pattern is confusing, and don't really see the need for it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This test tests module-level arguments, which is a lua-only concept

@Perryvw Perryvw merged commit b019174 into TypeScriptToLua:master Jan 21, 2020
@ark120202 ark120202 deleted the remove-no-hoisting-option branch January 22, 2020 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove noHoisting option

2 participants