Skip to content
This repository was archived by the owner on Sep 12, 2025. It is now read-only.

Conversation

@jugglerchris
Copy link
Collaborator

This is work in progress implementing #116 . Some tests are still missing.

* Add Function::dump() to dump the compiled version of a
  function.
* Add unsafe Chunk::into_function_allow_binary() which allows
  binary (i.e. precompiled) Lua.
These wrappers prevent loading binary Lua chunks.
Fix a problem with the wrapper: passing `nil` as the optional arguments
turns out to be different to passing fewer arguments.
Also fix an incorrect error return in dostring().
Fix dofile: raise an error instead of returning nil.
We were using the same temp file for two tests, which meant
there were race conditions.  Should really use non-hardcoded
filenames.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants