From 030ea66d4b0f13277de77d03c07c32e4aa4d52cb Mon Sep 17 00:00:00 2001 From: moadmmh Date: Fri, 28 May 2021 09:50:18 +0800 Subject: [PATCH] Fixed hypot length bug --- 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 284319e2a0a..50edd43abe3 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)