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 0c8443c commit 2a121e1Copy full SHA for 2a121e1
jscomp/syntax/classify_function.ml
@@ -72,7 +72,7 @@ let classify_exp (prog : _ Flow_ast.Expression.t ) : Js_raw_info.exp =
72
in
73
Js_literal {comment}
74
| (_, Identifier(_,{name = "undefined"})) -> Js_literal {comment =None}
75
- | (_,Object _) ->
+ | (_, (Object _ | Array _ )) ->
76
if is_obj_literal prog then Js_literal {comment = None} else Js_exp_unknown
77
| _ ->
78
Js_exp_unknown
0 commit comments