92
93
inline v8::Local<v8::Object> require(std::string const& module_path)
94
95
node_init_func_ = nullptr;
97
98
// Try append ".node" to module_path
99
100
auto module = dlopen(suffixed_module_path.c_str(), RTLD_LAZY);
102
103
// Didn't work, now try append ".so" to module_path
104
105
module = dlopen(suffixed_module_path.c_str(), RTLD_LAZY);
107
108
// Still didn't work, just try module_path as is
109
110
module = dlopen(suffixed_module_path.c_str(), RTLD_LAZY);