-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
20 lines (17 loc) · 794 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
const addon =
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");
},
metacall_load_from_file (filename, arrayOfFileNames) {
var tag = typeof filename == "string" ? filename : null;
var array = arrayOfFileNames instanceof Array ? arrayOfFileNames : null;
if(tag == null && array == null){
throw Error("Invalid Arguments, The valid arguments should be a tag string and an Array of strings(filenames)");
}
// check how to know when node is in debug mode....
// make call to Node Addon....
}
}