made sure i called the addon in the js wrapper
-const addon =
+const addon = require("./build/Release/addon.node")
module.exports = {
metacall () {
if(arguments.length == 0) throw Error("No Argument Passed!");
var functionName = typeof arguments[0] == "string" ? arguments[0] : null
if(functionName == null) throw Error("Function Name should be of string type");
+ addon.metacall(functionName);
},
@@ -14,6 +15,7 @@ module.exports = {
if(tag == null && array == null){
throw Error("Invalid Arguments, The valid arguments should be a tag string and an Array of strings(filenames)");
}
+ addon.metacall_load_from_file(filename, arrayOfFileNames);
// check how to know when node is in debug mode....
// make call to Node Addon....
}
