diff options
| author | Peter Melnichenko <mpeterval@gmail.com> | 2016-10-06 16:51:04 +0300 |
|---|---|---|
| committer | Peter Melnichenko <mpeterval@gmail.com> | 2016-10-06 16:51:36 +0300 |
| commit | eb7427676a2f09556f9d5f19a1a6392fd945e8bc (patch) | |
| tree | 49c3e583567c40a5173a603dff941dcb6e415992 /spec/util_spec.lua | |
| parent | adcba81974979be3763c8d9d46eb2de9a88ff67c (diff) | |
| download | luarocks-eb7427676a2f09556f9d5f19a1a6392fd945e8bc.tar.gz luarocks-eb7427676a2f09556f9d5f19a1a6392fd945e8bc.tar.bz2 luarocks-eb7427676a2f09556f9d5f19a1a6392fd945e8bc.zip | |
Rewrite util.sortedpairs to avoid using coroutines
util.sortedpairs is used in luarocks loader since @6dc745a.
Openresty does not like coroutines being used from inside `require`,
resulting in "attempt to yield across C-call boundary" error.
New version of util.sortedpairs uses a prepared array of ordered keys
instead of coroutines.
Ref #620.
Diffstat (limited to 'spec/util_spec.lua')
0 files changed, 0 insertions, 0 deletions
