Lines Matching defs:module
290 map_[handle].module = mod;
308 return it->second.module;
320 delete it->second.module;
330 node_module* module;
407 Local<Value> module,
428 // DLOpen is process.dlopen(module, filename, flags).
429 // Used to load 'module.node' dynamically shared objects.
456 Local<Object> module;
459 if (!args[0]->ToObject(context).ToLocal(&module) ||
460 !module->Get(context, env->exports_string()).ToLocal(&exports_v) ||
474 // module per object is supported.
501 callback(exports, module, context);
509 exports, module, context, JSVM_Callback, module_api_version);
524 // Even if the module did self-register, it may have done so with the
528 callback(exports, module, context);
538 "The module '%s'"
542 "re-installing\nthe module (for instance, using `npm rebuild` "
554 mp->nm_context_register_func(exports, module, context, mp->nm_priv);
556 mp->nm_register_func(exports, module, mp->nm_priv);
627 // Internal bindings don't have a "module" object, only exports.
640 Local<String> module = args[0].As<String>();
641 node::Utf8Value module_v(isolate, module);
696 Local<Object> module = Object::New(env->isolate());
700 module->Set(env->context(), exports_prop, exports).Check();
704 exports, module, env->context(), mod->nm_priv);
706 mod->nm_register_func(exports, module, mod->nm_priv);
713 module->Get(env->context(), exports_prop).ToLocalChecked();
718 // Call built-in bindings' _register_<module name> function to