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 a2d3b4f commit 5ab3d34Copy full SHA for 5ab3d34
compiler/lib/js_assign.ml
@@ -257,7 +257,9 @@ module Preserve : Strategy = struct
257
let record_block t scope (b : Js_traverse.block) =
258
let defs =
259
match b with
260
- | Catch (p, _) -> bound_idents_of_binding p
+ | Catch (p, _) ->
261
+ bound_idents_of_binding p
262
+ @ Javascript.IdentSet.elements scope.Js_traverse.def_local
263
| Normal -> Javascript.IdentSet.elements scope.Js_traverse.def_local
264
| Params _ ->
265
Javascript.IdentSet.elements
0 commit comments