parse and tokenize modules
This commit is contained in:
@@ -24,10 +24,9 @@ function use(path) {
|
||||
|
||||
if (fd.is_file(file_path)) {
|
||||
script = text(fd.slurp(file_path))
|
||||
exports = {}
|
||||
mach_eval(path, script, {use: use, exports: exports})
|
||||
use_cache[path] = exports
|
||||
return exports
|
||||
result = mach_eval(path, script, {use: use})
|
||||
use_cache[path] = result
|
||||
return result
|
||||
}
|
||||
|
||||
// Try embedded C module
|
||||
|
||||
Reference in New Issue
Block a user