Skip to content

Commit 6bc1e03

Browse files
committed
Remove then_
1 parent 5bb465a commit 6bc1e03

8 files changed

+32
-41
lines changed

jscomp/main/builtin_cmi_datasets.ml

+4-4
Large diffs are not rendered by default.

jscomp/main/builtin_cmj_datasets.ml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(* c7c15ed508cb10fea44c8bb270dcc9b3 *)
1+
(* ff607860fe63f1d5de0c9badae180498 *)
22
let module_names : string array = Obj.magic (
33
"Js" (* 23 *),
44
"Arg" (* 217 *),
@@ -89,7 +89,7 @@ let module_names : string array = Obj.magic (
8989
"BytesLabels" (* 878 *),
9090
"Dom_storage" (* 386 *),
9191
"Js_mapperRt" (* 87 *),
92-
"Js_promise2" (* 61 *),
92+
"Js_promise2" (* 50 *),
9393
"JsxDOMStyle" (* 23 *),
9494
"Node_buffer" (* 23 *),
9595
"Node_module" (* 23 *),
@@ -210,7 +210,7 @@ let module_data : string array = Obj.magic (
210210
(* Belt_Float *)"\132\149\166\190\000\000\000\022\000\000\000\007\000\000\000\021\000\000\000\020\160\144\176*fromString\144\160\160A@@@A",
211211
(* Belt_Range *)"\132\149\166\190\000\000\000\160\000\000\0004\000\000\000\166\000\000\000\156\160\b\000\000(\000\176$some\144\160\160C@@@\176%every\144\160\160C@@@\176%someU\144\160\160C@@@\176&everyU\144\160\160C@@@\176&someBy\144\160\160D@@@\176'everyBy\144\160\160D@@@\176'forEach\144\160\160C@@@\176'someByU\144\160\160D@@@\176(everyByU\144\160\160D@@@\176(forEachU\144\160\160C@@@A",
212212
(* Js_console *)"\132\149\166\190\000\000\000\003\000\000\000\001\000\000\000\003\000\000\000\003\160\128A",
213-
(* Js_promise *)"\132\149\166\190\000\000\000\252\000\000\000J\000\000\000\243\000\000\000\232\160\160\176%catch\144\160\160B@@\144\148\192B\160\176\001\004\014$arg1@\160\176\001\004\015#obj@@\151\176\180%catch\160\160AA\160\160AA@\181%catch@@\160\144\004\014\160\151\176\b\000\000\004\016A\160\144\004\023@\176\1924others/js_promise.ml\000Q\001\012\005\001\012\005\192\004\002\000R\001\012S\001\012q@@\004\004\208B@@@@\176%then_\144\160\160B@@\144\148\192B\160\176\001\004\t$arg1@\160\176\001\004\n\004%@@\151\176\180$then\160\160AA\160\160AA@\181$then@@\160\144\004\r\160\151\176\b\000\000\004\016A\160\144\004\022@\176\192\004$\000N\001\011\155\001\011\155\192\004%\000O\001\011\229\001\012\003@@\004\003\208B@@@@A",
213+
(* Js_promise *)"\132\149\166\190\000\000\000\252\000\000\000J\000\000\000\243\000\000\000\232\160\160\176%catch\144\160\160B@@\144\148\192B\160\176\001\004\r$arg1@\160\176\001\004\014#obj@@\151\176\180%catch\160\160AA\160\160AA@\181%catch@@\160\144\004\014\160\151\176\b\000\000\004\016A\160\144\004\023@\176\1924others/js_promise.ml\000Q\001\012\005\001\012\005\192\004\002\000R\001\012S\001\012q@@\004\004\208B@@@@\176%then_\144\160\160B@@\144\148\192B\160\176\001\004\b$arg1@\160\176\001\004\t\004%@@\151\176\180$then\160\160AA\160\160AA@\181$then@@\160\144\004\r\160\151\176\b\000\000\004\016A\160\144\004\022@\176\192\004$\000N\001\011\155\001\011\155\192\004%\000O\001\011\229\001\012\003@@\004\003\208B@@@@A",
214214
(* Js_string2 *)"\132\149\166\190\000\000\000\003\000\000\000\001\000\000\000\003\000\000\000\003\160\128A",
215215
(* Js_weakmap *)"\132\149\166\190\000\000\000\003\000\000\000\001\000\000\000\003\000\000\000\003\160\128A",
216216
(* Js_weakset *)"\132\149\166\190\000\000\000\003\000\000\000\001\000\000\000\003\000\000\000\003\160\128A",
@@ -225,7 +225,7 @@ let module_data : string array = Obj.magic (
225225
(* BytesLabels *)"\132\149\166\190\000\000\003Z\000\000\000\231\000\000\003\012\000\000\002\216\160\b\000\000\152\000\176#cat\144\160\160B@@@\176#map\144\160\160B@@@\176#sub\144\160\160C@@@\176$blit\144\160\160E@@@\176$copy\144\160\160A@@@\176$fill\144\160\160D@@@\176$init\144\160\160B@@@\176$iter\144\160\160B@@@\176$make\144\160\160B@@@\176$mapi\144\160\160B@@@\176$trim\144\160\160A@@@\176%equal\144\160\160B@@\144\148\192B\160\176\001\005z!x@\160\176\001\005{!y@@\151\176\1470caml_bytes_equal\160\144\004\011\160\144\004\n@\176\1929stdlib-406/bytesLabels.ml\001\001\171\0011\127\0011\155\192\004\002\001\001\171\0011\127\0011\160@\208B@@@@\176%index\144\160\160B@@@\176%iteri\144\160\160B@@@\176&concat\144\160\160B@@@\176&extend\144\160\160C@@@\176&rindex\144\160\160B@@@\176'compare\144\160\160B@@\144\148\192B\160\176\001\005w!x@\160\176\001\005x!y@@\151\176\1472caml_bytes_compare\160\144\004\011\160\144\004\n@\176\192\0044\001\001\170\0011L\0011h\192\0045\001\001\170\0011L\0011~@\208B@@@@\176'escaped\144\160\160A@@@\176(contains\144\160\160B@@@\176)index_opt\144\160\160B@@@\176)of_string\144\160\160A@@@\176)to_string\144\160\160A@@@\176*index_from\144\160\160C@@@\176*rindex_opt\144\160\160B@@@\176*sub_string\144\160\160C@@@\176+blit_string\144\160\160E@@@\176+rindex_from\144\160\160C@@@\176-contains_from\144\160\160C@@@\176.index_from_opt\144\160\160C@@@\176.rcontains_from\144\160\160C@@@\176/lowercase_ascii\144\160\160A@@@\176/rindex_from_opt\144\160\160C@@@\176/uppercase_ascii\144\160\160A@@@\1760capitalize_ascii\144\160\160A@@@\1760unsafe_of_string\144\004F@\1760unsafe_to_string\144\004D@\1762uncapitalize_ascii\144\160\160A@@@A",
226226
(* Dom_storage *)"\132\149\166\190\000\000\001n\000\000\000k\000\000\001^\000\000\001T\160\192\176#key\144\160\160B@@\144\148\192B\160\176\001\004\004!i@\160\176\001\004\005#obj@@\151\176\000B\160\151\176\180#key\160\160AA\160\004\002@\181#key@@\160\144\004\016\160\144\004\021@\176\1925others/dom_storage.mlR\001\003\022\001\0036\192\004\002R\001\003\022\001\003B@@\004\004\208B@@@@\176'getItem\144\160\160B@@\144\148\192B\160\176\001\003\246!s@\160\176\001\003\247#obj@@\151\176\000B\160\151\176\180'getItem\160\004#\160\004$@\181'getItem@@\160\144\004\015\160\144\004\020@\176\192\004\"D\000x\001\000\140\192\004#D\000x\001\000\156@@\004\003\208B@@@@\176'setItem\144\160\160C@@@\176*removeItem\144\160\160B@@\144\148\192B\160\176\001\003\255!s@\160\176\001\004\000#obj@@\174\151\176\180*removeItem\160\004G\160\004H@\181*removeItem@@\160\144\004\r\160\144\004\018@\176\192\004FL\001\001\208\001\001\238\192\004GL\001\001\208\001\002\001@\146A\208B@@A@A",
227227
(* Js_mapperRt *)"\132\149\166\190\000\000\000C\000\000\000\017\000\000\0009\000\000\0004\160\176\176'fromInt\144\160\160C@@@\176-fromIntAssert\144\160\160C@@@\1761raiseWhenNotFound\144\160\160A@@@A",
228-
(* Js_promise2 *)"\132\149\166\190\000\000\000)\000\000\000\015\000\000\000.\000\000\000+\160\176\176$then\144\160\160B@@@\176%catch\144\160\160B@@@\176%then_\144\004\n@A",
228+
(* Js_promise2 *)"\132\149\166\190\000\000\000\030\000\000\000\012\000\000\000$\000\000\000\"\160\160\176$then\144\160\160B@@@\176%catch\144\160\160B@@@A",
229229
(* JsxDOMStyle *)"\132\149\166\190\000\000\000\003\000\000\000\001\000\000\000\003\000\000\000\003\160\128A",
230230
(* Node_buffer *)"\132\149\166\190\000\000\000\003\000\000\000\001\000\000\000\003\000\000\000\003\160\128A",
231231
(* Node_module *)"\132\149\166\190\000\000\000\003\000\000\000\001\000\000\000\003\000\000\000\003\160\128A",

jscomp/others/js_promise2.res

-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ let catch: (promise<'a>, error => promise<'a>) => promise<'a> = %raw(`
1515
}
1616
`)
1717

18-
@deprecated("Use then instead")
19-
let then_ = then
20-
2118
@new
2219
external make: ((@uncurry ~resolve: (. 'a) => unit, ~reject: (. exn) => unit) => unit) => promise<
2320
'a,

lib/4.06.1/unstable/js_compiler.ml

+8-8
Large diffs are not rendered by default.

lib/4.06.1/unstable/js_playground_compiler.ml

+8-8
Large diffs are not rendered by default.

lib/4.06.1/whole_compiler.ml

+8-8
Large diffs are not rendered by default.

lib/es6/js_promise2.js

-3
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,8 @@ var $$catch = (function(p, cont) {
99
Promise.resolve(p).catch(cont)
1010
});
1111

12-
var then_ = then;
13-
1412
export {
1513
then ,
1614
$$catch ,
17-
then_ ,
1815
}
1916
/* No side effect */

lib/js/js_promise2.js

-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ var $$catch = (function(p, cont) {
99
Promise.resolve(p).catch(cont)
1010
});
1111

12-
var then_ = then;
13-
1412
exports.then = then;
1513
exports.$$catch = $$catch;
16-
exports.then_ = then_;
1714
/* No side effect */

0 commit comments

Comments
 (0)