-
Notifications
You must be signed in to change notification settings - Fork 465
/
Copy pathres_debug.js
94 lines (72 loc) · 1.34 KB
/
res_debug.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
'use strict';
var Curry = require("../../lib/js/curry.js");
var Caml_obj = require("../../lib/js/caml_obj.js");
var Caml_option = require("../../lib/js/caml_option.js");
function f($$window, a, b) {
return $$window.location(a, b);
}
var v0 = {
x: 3,
z: 2
};
var newrecord = Caml_obj.obj_dup(v0);
newrecord.x = 3;
function testMatch(v) {
var y = v.y;
if (y !== undefined) {
return y;
} else {
return 42;
}
}
function optionMap(x, f) {
if (x !== undefined) {
return Caml_option.some(Curry._1(f, Caml_option.valFromOption(x)));
}
}
var ok_name = optionMap(undefined, (function (x) {
return x;
}));
var ok = {
name: ok_name
};
var bad_name = optionMap(undefined, (function (x) {
return x;
}));
var bad = {
name: bad_name
};
function identity(x) {
return x;
}
var name1 = "ReScript";
var ok1 = {
name: name1
};
var bad1 = {
name: name1
};
var v2 = newrecord;
var v1 = {
x: 3,
z: 3
};
var h = /* '\522' */128522;
var hey = "hello, 世界";
var name;
exports.f = f;
exports.v0 = v0;
exports.v2 = v2;
exports.v1 = v1;
exports.testMatch = testMatch;
exports.h = h;
exports.hey = hey;
exports.optionMap = optionMap;
exports.name = name;
exports.ok = ok;
exports.bad = bad;
exports.identity = identity;
exports.name1 = name1;
exports.ok1 = ok1;
exports.bad1 = bad1;
/* Not a pure module */