Skip to content

Commit 38559d9

Browse files
committedOct 30, 2018
tweak
1 parent fed3f02 commit 38559d9

7 files changed

+12
-9
lines changed
 

‎jscomp/Makefile.shared

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ CAMLDEP=ocamldep.opt
33
CAMLLEX=ocamllex.opt
44
CAMLOPT=ocamlopt.opt
55
STDLIB=stdlib-402
6-
6+
# STDLIB=stdlib-406
77

88

99
.SUFFIXES: .mli .ml .cmi .cmo .cmx .p.cmx .cmj .js

‎jscomp/stdlib-402/Makefile.shared

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ include ../Makefile.shared
3333

3434
BS_FLAGS= $(BS_COMMON_FLAGS) $(BS_PKG_FLAGS)
3535
COMPFLAGS= $(BS_FLAGS) -strict-sequence -w +33..39-102 -g -nostdlib \
36-
-safe-string -I ../runtime -I ../others $(PROD_BS_FLAGS)
36+
-safe-string -I ../runtime -I ../others
3737

3838

3939
# OPTCOMPILER=ocamlopt.opt

‎jscomp/test/Makefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ OTHERS := test_literals a test_ari test_export2 test_internalOO test_obj_simple_
134134
switch_case_test\
135135
bb\
136136
ocaml_parsetree_test\
137-
ocaml_typedtree_test\
138137
gpr_1484\
139138
gpr_1481\
140139
custom_error_test\
@@ -267,6 +266,8 @@ OTHERS := test_literals a test_ari test_export2 test_internalOO test_obj_simple_
267266
large_record_duplication_test\
268267
unboxed_attribute_test\
269268
406_primitive_test\
269+
ocaml_typedtree_test
270+
# ocaml_typedtree_test is not cross version due to camlinternalFormat
270271
# bs_uncurry_test
271272
# needs Lam to get rid of Uncurry arity first
272273
# simple_derive_test

‎jscomp/test/rebind_module.js

+3
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,8 @@ var Caml_exceptions = require("../../lib/js/caml_exceptions.js");
44

55
var A = Caml_exceptions.create("Rebind_module.A");
66

7+
var AA = Caml_exceptions.create("Rebind_module.AA");
8+
79
exports.A = A;
10+
exports.AA = AA;
811
/* No side effect */

‎jscomp/test/rebind_module.ml

+3-4
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ type a += A
88
it seems record disamibigution does not
99
work with extensible type
1010
*)
11-
#if OCAML_VERSION =~ "<4.03.0" then
12-
type b += A
13-
#else
11+
1412
type b += AA (*name must be unique since 4.06 *)
15-
#end
13+
14+
(*TODO: more tests for Local module A *)

‎jscomp/test/rebind_module_test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
var Rebind_module = require("./rebind_module.js");
44

55
function x(v) {
6-
if (v === Rebind_module.A) {
6+
if (v === Rebind_module.AA) {
77
return 0;
88
} else {
99
return 1;

‎jscomp/test/rebind_module_test.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
let x (v : Rebind_module.b) =
22
match v with
3-
| Rebind_module.A -> 0
3+
| Rebind_module.AA -> 0
44
| _ -> 1

0 commit comments

Comments
 (0)
Please sign in to comment.