Skip to content

coroutine ~= package.loaded.coroutine #381

Closed
@pygy

Description

@pygy

While messing with the require/coroutine issue with MoonScript, I found out that you had forgotten to replace package.loaded.coroutine with your own version. As a consequence, require"coroutine" returns the original Lua version.

FWIW, overwriting the global with the cached package solves the "yield across C boundary" problem, since there are now two coroutine implementations running in parallel, but I suppose that it causes other issues down the line (I only did a few basic tests).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions