forked from rescript-lang/rescript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprepend_data_ffi.js
72 lines (54 loc) · 1.21 KB
/
prepend_data_ffi.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
'use strict';
var v1 = {
stdio: "inherit",
v: 3
};
var v2 = {
stdio: 1,
v: 2
};
process.on("exit", (function (exit_code) {
return String(exit_code);
}));
process.on(1, (function (param) {
}));
process.on((function (i) {
return String(i);
}), "exit");
process.on((function (i) {
return String(i);
}), 1);
xx(3, 3, "xxx", "a", "b");
function f(x) {
x.xx(114, [
1,
2,
3
]);
x.xx(115, 3, "xxx", [
1,
2,
3
]);
x.xx(116, 3, "xxx", 1, 2, 3);
x.xx(117, 3, "xxx", 0, "b", 1, 2, 3, 4, 5);
x.xx(118, 3, true, false, "你好", ["你好",1,2,3], [{ "arr" : ["你好",1,2,3], "encoding" : "utf8"}], [{ "arr" : ["你好",1,2,3], "encoding" : "utf8"}], "xxx", 0, "yyy", "b", 1, 2, 3, 4, 5);
}
process.on("exit", (function (exit_code) {
console.log("error code: " + String(exit_code));
}));
function register(p) {
p.on("exit", (function (i) {
console.log(i);
}));
}
var config = {
stdio: "inherit",
cwd: "."
};
exports.v1 = v1;
exports.v2 = v2;
exports.f = f;
exports.register = register;
exports.config = config;
/* Not a pure module */