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.
unsafe_await
1 parent fbbb84b commit 278ad5eCopy full SHA for 278ad5e
jscomp/ml/ast_await.ml
@@ -2,7 +2,7 @@ let is_await : Parsetree.attribute -> bool =
2
fun ({txt}, _) -> txt = "await" || txt = "res.await"
3
4
let create_await_expression (e : Parsetree.expression) =
5
- let loc = e.pexp_loc in
+ let loc = {e.pexp_loc with loc_ghost = true} in
6
let unsafe_await =
7
Ast_helper.Exp.ident ~loc
8
{txt = Ldot (Ldot (Lident "Js", "Promise"), "unsafe_await"); loc}
0 commit comments