File tree Expand file tree Collapse file tree 4 files changed +4
-70
lines changed Expand file tree Collapse file tree 4 files changed +4
-70
lines changed Original file line number Diff line number Diff line change 1+
2+
3+ val setupChromeDebugger : unit -> unit
4+ [@@ ocaml.deprecated "This call is reduandent, simply remoe it" ]
Original file line number Diff line number Diff line change @@ -35,30 +35,5 @@ let __ tag block =
3535 Caml_obj_extern. set_tag block tag; block
3636
3737
38- type symbol
39-
40-
41- external cacheSymbol : string -> symbol = " for"
42- [@@ bs.scope "Symbol" ] [@@ bs.val]
43- external addProp : 'a -> symbol -> < value: 'b > Js .t -> 'a =
44- " defineProperty" [@@ bs.scope "Object" ] [@@ bs.val]
45-
46-
47- (* It won't affect [Object.keys] using [Object.defineProperty*)
48- let record meta xs =
49- xs |. addProp (cacheSymbol " BsRecord" ) [% obj {value = meta}]
50-
51- let variant meta tag xs =
52- xs |. Caml_obj_extern. set_tag tag;
53- xs |. addProp (cacheSymbol " BsVariant" ) [% obj {value = meta }]
54-
55- let simpleVariant meta xs =
56- xs |. addProp (cacheSymbol " BsVariant" ) [% obj {value = meta }]
57-
58- let localModule meta xs =
59- xs |. addProp (cacheSymbol " BsLocalModule" ) [% obj {value = meta}]
60-
61- let polyVar meta xs =
62- xs |. addProp (cacheSymbol " BsPolyVar" ) [% obj {value = meta}]
6338
6439
Original file line number Diff line number Diff line change @@ -31,13 +31,4 @@ type obj = Caml_obj_extern.t
3131
3232val __ : int -> obj -> obj
3333
34- val record : 'a -> obj -> obj
35-
36- val variant : 'a -> int -> obj -> obj
37-
38- val simpleVariant : 'a -> obj -> obj
39-
40- val localModule : 'a -> obj -> obj
41-
42- val polyVar : 'a -> obj -> obj
4334
Original file line number Diff line number Diff line change @@ -6,41 +6,5 @@ function __(tag, block) {
66 return block ;
77}
88
9- function record ( meta , xs ) {
10- return Object . defineProperty ( xs , Symbol . for ( "BsRecord" ) , {
11- value : meta
12- } ) ;
13- }
14-
15- function variant ( meta , tag , xs ) {
16- xs . tag = tag ;
17- return Object . defineProperty ( xs , Symbol . for ( "BsVariant" ) , {
18- value : meta
19- } ) ;
20- }
21-
22- function simpleVariant ( meta , xs ) {
23- return Object . defineProperty ( xs , Symbol . for ( "BsVariant" ) , {
24- value : meta
25- } ) ;
26- }
27-
28- function localModule ( meta , xs ) {
29- return Object . defineProperty ( xs , Symbol . for ( "BsLocalModule" ) , {
30- value : meta
31- } ) ;
32- }
33-
34- function polyVar ( meta , xs ) {
35- return Object . defineProperty ( xs , Symbol . for ( "BsPolyVar" ) , {
36- value : meta
37- } ) ;
38- }
39-
409exports . __ = __ ;
41- exports . record = record ;
42- exports . variant = variant ;
43- exports . simpleVariant = simpleVariant ;
44- exports . localModule = localModule ;
45- exports . polyVar = polyVar ;
4610/* No side effect */
You can’t perform that action at this time.
0 commit comments