From 07c9976861fc160675bbcd30e15baef81933ac4b Mon Sep 17 00:00:00 2001 From: Josh Watzman Date: Tue, 1 Apr 2014 15:14:12 -0700 Subject: [PATCH] Fix another assert crash Followup to D1246487. Reviewed By: @gabelevi Differential Revision: D1252520 --- hphp/hack/src/typing/typing.ml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/hphp/hack/src/typing/typing.ml b/hphp/hack/src/typing/typing.ml index 9a6d4f4a4f3..e8687e931eb 100644 --- a/hphp/hack/src/typing/typing.ml +++ b/hphp/hack/src/typing/typing.ml @@ -1024,10 +1024,8 @@ and anon_bind_param params env (param_name, ty as pname_ty) = match !params with | [] -> (* This code cannot be executed normally, because the arity is wrong - * and it should have been caught earlier. But in silent-mode, we - * tolerate it, we bind as many parameters as we can and carry on. - *) - assert !is_silent_mode; + * and it will error later. Bind as many parameters as we can and carry + * on. *) env | param :: paraml -> params := paraml; -- 2.11.4.GIT