Skip to content

Commit 02495f5

Browse files
committed
progress
1 parent 5a5bf7f commit 02495f5

30 files changed

+164
-448
lines changed

jscomp/others/js_string.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ Js.String.splitAtMost("/", ~limit=9, "ant/bee/cat/dog/elk") == ["ant", "bee", "c
704704
*/
705705
external splitAtMost: (t, ~limit: int) => array<t> = "split"
706706

707-
@bs.send.pipe(: t)
707+
@send.pipe(: t)
708708
@ocaml.doc("
709709
`splitByRe(regex, str)` splits the given `str` at every occurrence of `regex`
710710
and returns an array of the resulting substrings.

jscomp/others/js_typed_array.res

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,10 @@ module ArrayBuffer = {
5656

5757
@get external byteLength: t => int = "byteLength"
5858

59-
@send.pipe(: t) external slice: (~start: int, ~end_: int) => array_buffer = "slice" /* FIXME */
60-
@send.pipe(: t) external sliceFrom: int => array_buffer = "slice"
59+
@send external _slice: (t, ~start: int, ~end_: int) => array_buffer = "slice" /* FIXME */
60+
let slice = (~start: int, ~end_: int, t) => _slice(t, ~start, ~end_)
61+
@send external _sliceFrom: (t, int) => array_buffer = "slice"
62+
let sliceFrom = (x, y) => _sliceFrom(y, x)
6163
}
6264
module type S = {
6365
/*** Implements functionality common to all the typed arrays */

jscomp/test/build.ninja

Lines changed: 1 addition & 4 deletions
Large diffs are not rendered by default.

jscomp/test/google_closure_test.js

Lines changed: 0 additions & 32 deletions
This file was deleted.

jscomp/test/google_closure_test.res

Lines changed: 0 additions & 20 deletions
This file was deleted.

jscomp/test/hash_test.js

Lines changed: 6 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jscomp/test/hash_test.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
let suites: ref<Mt.pair_suites> = ref(list{})
22
let test_id = ref(0)
3-
let eq = f => Mt_global.collect_eq(test_id, suites, f)
3+
let eq = (f, x, y) => Mt_global.collect_eq(test_id, suites, f, x, y)
44

55
let test_strings = Array.init(32, i => String.make(i, Char.chr(i)))
66

jscomp/test/int_hashtbl_test.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jscomp/test/int_poly_var.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jscomp/test/map_find_test.js

Lines changed: 2 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jscomp/test/pr_regression_test.js

Lines changed: 0 additions & 119 deletions
This file was deleted.

jscomp/test/pr_regression_test.res

Lines changed: 0 additions & 63 deletions
This file was deleted.

0 commit comments

Comments
 (0)