refactor: rename package module loading to module directory loading in readModule

Rename the internal concept from "package" to "module directory" when loading
module.wren files from subdirectories. Update variable names (packageModule
to moduleDir, packageModulePath to moduleDirPath) and adjust early return
logic to free modulePath before checking contents. Add test for loading
module from a directory and remove old package module test.
This commit is contained in:
Bob Nystrom
2015-03-23 13:48:08 +00:00
parent 1929f272fa
commit 7ed5603ffc
4 changed files with 17 additions and 22 deletions
@@ -0,0 +1 @@
var Index = "index"