Skip to content
Snippets Groups Projects
Commit 5eef5fb8 authored by Alexander Turenko's avatar Alexander Turenko Committed by Igor Munkin
Browse files

lua: eliminate package.loaded write in box modules

There are several reasons to do so:

1. Direct `package.loaded` assignments contradicts with future
   implementation of built-in module overriding.
2. It is common for external Lua modules, so a Lua developer used to
   follow this convention.
3. src/lua/*.lua files already return module tables instead of setting
   them to `package.loaded` directly.

This change follows the idea of the previous commit, see it for details.

Part of #7774

NO_TEST=no user visible changes
NO_CHANGELOG=see NO_TEST
NO_DOC=see NO_TEST
parent 5e71958e
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment