From e577f2a4c1a85e90b715637bdb8e332f973f9e31 Mon Sep 17 00:00:00 2001 From: Moad Mohammed Elhebri <37096896+moadmmh@users.noreply.github.com> Date: Fri, 28 May 2021 23:46:32 +0800 Subject: [PATCH] Fixed hypot length bug (#1288) --- boa/src/builtins/math/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boa/src/builtins/math/mod.rs b/boa/src/builtins/math/mod.rs index 284319e2a0..50edd43abe 100644 --- a/boa/src/builtins/math/mod.rs +++ b/boa/src/builtins/math/mod.rs @@ -63,7 +63,7 @@ impl BuiltIn for Math { .function(Self::expm1, "expm1", 1) .function(Self::floor, "floor", 1) .function(Self::fround, "fround", 1) - .function(Self::hypot, "hypot", 1) + .function(Self::hypot, "hypot", 2) .function(Self::imul, "imul", 1) .function(Self::log, "log", 1) .function(Self::log1p, "log1p", 1)