Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix to allow debug.upvalue() to set upvalues to nil#351

Open
bruce-hill wants to merge 1 commit into
leafo:masterleafo/moonscript:masterfrom
bruce-hill:masterbruce-hill/moonscript:masterCopy head branch name to clipboard
Open

Fix to allow debug.upvalue() to set upvalues to nil#351
bruce-hill wants to merge 1 commit into
leafo:masterleafo/moonscript:masterfrom
bruce-hill:masterbruce-hill/moonscript:masterCopy head branch name to clipboard

Conversation

@bruce-hill

Copy link
Copy Markdown

This should make it faster (it now stops scanning when it hits the desired upvalue) and more correct. It now allows setting an upvalue to a falsey or nil value, e.g. debug.upvalue(fn, 'foo', nil) (set 'foo' to nil), which is treated differently different from debug.upvalue(fn, 'foo') (get the value of 'foo').

it hits the desired upvalue) and more correct (allow setting an upvalue
to a falsey or nil value: debug.upvalue(fn, 'foo', nil), which is
different from debug.upvalue(fn, 'foo')).
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.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.