lune-org/lune

Global print() yielding thread.

Closed this issue · 1 comments

The global print() function is yielding the thread when called.
This bug can reproducted using this simple, small snippet of code:

local string = "hi!"

string:gsub("%w", function(character)
	print(character)
end)

Which results in error

[ERROR] 
attempt to yield across metamethod/C-call boundary
[Stack Begin]
    Script '[C]' - function yield
    Script '[C]'
    Script 'FILE', Line 4
    Script '[C]' - function gsub
    Script 'FILE', Line 3
[Stack End]

Fixed in cd78fea