Skip to content

Commit 8ed70db

Browse files
committed
wip
1 parent cb04a8b commit 8ed70db

File tree

77 files changed

+562
-497
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+562
-497
lines changed

lib/es6/Intl_NumberFormat_Grouping.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11

22

3-
import * as Type from "./Type.js";
3+
import * as Stdlib_Type from "./Stdlib_Type.js";
44

55
function parseJsValue(value) {
6-
let value$1 = Type.Classify.classify(value);
6+
let value$1 = Stdlib_Type.Classify.classify(value);
77
if (typeof value$1 !== "object") {
88
return;
99
}

lib/es6/Option.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22

3-
import * as $$Error from "./Error.js";
3+
import * as Stdlib_Error from "./Stdlib_Error.js";
44
import * as Primitive_option from "./Primitive_option.js";
55

66
function filter(opt, p) {
@@ -21,7 +21,7 @@ function getExn(x, message) {
2121
if (x !== undefined) {
2222
return Primitive_option.valFromOption(x);
2323
} else {
24-
return $$Error.panic(message !== undefined ? message : "Option.getExn called for None value");
24+
return Stdlib_Error.panic(message !== undefined ? message : "Option.getExn called for None value");
2525
}
2626
}
2727

lib/es6/Pervasives.js

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11

22

3-
import * as $$Error from "./Error.js";
4-
import * as Primitive_object from "./Primitive_object.js";
53
import * as Primitive_exceptions from "./Primitive_exceptions.js";
64

75
function failwith(s) {
@@ -117,21 +115,6 @@ function $at(l1, l2) {
117115
}
118116
}
119117

120-
function assertEqual(a, b) {
121-
if (!Primitive_object.notequal(a, b)) {
122-
return;
123-
}
124-
throw {
125-
RE_EXN_ID: "Assert_failure",
126-
_1: [
127-
"Pervasives.res",
128-
596,
129-
4
130-
],
131-
Error: new Error()
132-
};
133-
}
134-
135118
let max_int = 2147483647;
136119

137120
let infinity = Infinity;
@@ -144,8 +127,6 @@ let min_float = 2.22507385850720138e-308;
144127

145128
let epsilon_float = 2.22044604925031308e-16;
146129

147-
let panic = $$Error.panic;
148-
149130
export {
150131
failwith,
151132
invalid_arg,
@@ -166,7 +147,5 @@ export {
166147
bool_of_string_opt,
167148
int_of_string_opt,
168149
$at,
169-
panic,
170-
assertEqual,
171150
}
172151
/* No side effect */

lib/es6/Stdlib.js

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,41 @@
11

22

3+
import * as Stdlib_Error from "./Stdlib_Error.js";
4+
import * as Primitive_object from "./Primitive_object.js";
5+
6+
function assertEqual(a, b) {
7+
if (!Primitive_object.notequal(a, b)) {
8+
return;
9+
}
10+
throw {
11+
RE_EXN_ID: "Assert_failure",
12+
_1: [
13+
"Stdlib.res",
14+
292,
15+
4
16+
],
17+
Error: new Error()
18+
};
19+
}
320

421
let $$Array;
522

23+
let Console;
24+
625
let $$Date;
726

827
let Dict;
928

29+
let Exn;
30+
31+
let $$Error;
32+
33+
let $$Int8Array;
34+
35+
let $$Int16Array;
36+
37+
let $$Int32Array;
38+
1039
let $$Promise;
1140

1241
let $$RegExp;
@@ -19,15 +48,43 @@ let $$String;
1948

2049
let $$Symbol;
2150

51+
let Type;
52+
53+
let $$TypedArray;
54+
55+
let $$Uint8Array;
56+
57+
let $$Uint8ClampedArray;
58+
59+
let $$Uint16Array;
60+
61+
let $$Uint32Array;
62+
63+
let panic = Stdlib_Error.panic;
64+
2265
export {
2366
$$Array,
67+
Console,
2468
$$Date,
2569
Dict,
70+
Exn,
71+
$$Error,
72+
$$Int8Array,
73+
$$Int16Array,
74+
$$Int32Array,
2675
$$Promise,
2776
$$RegExp,
2877
Result,
2978
$$Set,
3079
$$String,
3180
$$Symbol,
81+
Type,
82+
$$TypedArray,
83+
$$Uint8Array,
84+
$$Uint8ClampedArray,
85+
$$Uint16Array,
86+
$$Uint32Array,
87+
panic,
88+
assertEqual,
3289
}
3390
/* No side effect */
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)