Skip to content

Commit 148fa0c

Browse files
committed
Snapshot changes
1 parent e81a0fe commit 148fa0c

23 files changed

+1280
-1779
lines changed

jscomp/test/build.ninja

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@ build test/gpr_3595_test.cmi test/gpr_3595_test.cmj : cc test/gpr_3595_test.ml |
296296
build test/gpr_3609_test.cmi test/gpr_3609_test.cmj : cc test/gpr_3609_test.ml | $stdlib
297297
build test/gpr_3697_test.cmi test/gpr_3697_test.cmj : cc test/gpr_3697_test.ml | $stdlib
298298
build test/gpr_373_test.cmi test/gpr_373_test.cmj : cc test/gpr_373_test.ml | $stdlib
299+
build test/gpr_3770_test.cmi test/gpr_3770_test.cmj : cc test/gpr_3770_test.ml | $stdlib
299300
build test/gpr_405_test.cmj : cc_cmi test/gpr_405_test.ml | test/gpr_405_test.cmi $stdlib
300301
build test/gpr_405_test.cmi : cc test/gpr_405_test.mli | $stdlib
301302
build test/gpr_441.cmi test/gpr_441.cmj : cc test/gpr_441.ml | $stdlib

jscomp/test/exception_rebound_err_test.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,8 @@ function test_js_error4(param) {
4949
} else {
5050
exit = 2;
5151
}
52-
if (exit === 2) {
53-
if (e[0] === A) {
54-
if (e[1] === 2) {
55-
return 4;
56-
}
57-
58-
}
59-
52+
if (exit === 2 && e[0] === A && e[1] === 2) {
53+
return 4;
6054
}
6155
if (e === B) {
6256
return 5;

jscomp/test/ext_filename_test.js

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -119,16 +119,10 @@ function relative_path(file_or_dir_1, file_or_dir_2) {
119119
while(true) {
120120
var dir2 = _dir2;
121121
var dir1 = _dir1;
122-
if (dir1) {
123-
if (dir2) {
124-
if (dir1[0] === dir2[0]) {
125-
_dir2 = dir2[1];
126-
_dir1 = dir1[1];
127-
continue ;
128-
}
129-
130-
}
131-
122+
if (dir1 && dir2 && dir1[0] === dir2[0]) {
123+
_dir2 = dir2[1];
124+
_dir1 = dir1[1];
125+
continue ;
132126
}
133127
return Pervasives.$at(List.map((function (param) {
134128
return node_parent;

0 commit comments

Comments
 (0)