Skip to content

Commit 7ca0b47

Browse files
committed
Fix assertion
1 parent 9218fa3 commit 7ca0b47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/lib/source_map_io.yojson.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ let of_json json =
107107
Option.map
108108
(fun mappings ->
109109
assert (
110-
String.length mappings > 2
110+
String.length mappings >= 2
111111
&& Char.equal mappings.[0] '"'
112112
&& Char.equal mappings.[String.length mappings - 1] '"');
113113
let mappings = String.sub mappings 1 (String.length mappings - 2) in

0 commit comments

Comments
 (0)