We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edb11fa commit 1e2c57dCopy full SHA for 1e2c57d
compiler/lib/flow.ml
@@ -415,7 +415,11 @@ let the_string_of ~target info x =
415
let the_native_string_of ~target info x =
416
match the_const_of ~target info x with
417
| Some (NativeString i) -> Some i
418
- | Some (String i) -> Some (Native_string.of_bytestring i)
+ | Some (String i) ->
419
+ (* This function is used to optimize the primitives that access
420
+ object properties. These primitives are expected to work with
421
+ OCaml string as well, considered as byte strings. *)
422
+ Some (Native_string.of_bytestring i)
423
| _ -> None
424
425
let the_block_contents_of info x =
0 commit comments