forked from mr-sherman/sarif-to-csv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.js
28 lines (24 loc) · 1.03 KB
/
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env node
if(typeof Math.imul == "undefined" || (Math.imul(0xffffffff,5) == 0)) {
Math.imul = function (a, b) {
var ah = (a >>> 16) & 0xffff;
var al = a & 0xffff;
var bh = (b >>> 16) & 0xffff;
var bl = b & 0xffff;
// the shift by 0 fixes the sign on the high part
// the final |0 converts the unsigned value into a signed value
return ((al * bl) + (((ah * bl + al * bh) << 16) >>> 0)|0);
}
}
var path = require("path");
try {
require("source-map-support").install();
} catch(err) {
}
require(path.join(path.resolve(__dirname),".cljs_node_repl","goog","bootstrap","nodejs.js"));
require(path.join(path.resolve(__dirname),".cljs_node_repl","cljs_deps.js"));
//require(path.join(path.resolve("."),".cljs_node_repl","goog","bootstrap","nodejs.js"));
//require(path.join(path.resolve("."),".cljs_node_repl","cljs_deps.js"));
goog.global.CLOSURE_UNCOMPILED_DEFINES = {"cljs.core._STAR_target_STAR_":"nodejs"};
goog.require("sarif_to_csv.core");
goog.require("cljs.nodejscli");