Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disallow nil table index #16

Closed
ghost opened this issue Apr 13, 2015 · 0 comments
Closed

Disallow nil table index #16

ghost opened this issue Apr 13, 2015 · 0 comments
Labels

Comments

@ghost
Copy link

ghost commented Apr 13, 2015

Currently, the following code runs without error:

local x = {}
x[nil] = "test"

To be consistent with Lua 5.1, it should raise a "table index is nil" error.

yuin added a commit that referenced this issue Apr 23, 2015
yuin added a commit that referenced this issue Apr 23, 2015
@yuin yuin closed this as completed Apr 23, 2015
@yuin yuin added the bug label Apr 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant