From fbfd57d9a5ea8187c8c3586ee0646ed027a636d1 Mon Sep 17 00:00:00 2001 From: albert Date: Thu, 26 Dec 2024 16:52:12 +0800 Subject: [PATCH] fix very minor typo shift -> unshift --- core/engine/src/object/builtins/jsarray.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/engine/src/object/builtins/jsarray.rs b/core/engine/src/object/builtins/jsarray.rs index 27457869443..2e3e1462b1e 100644 --- a/core/engine/src/object/builtins/jsarray.rs +++ b/core/engine/src/object/builtins/jsarray.rs @@ -100,7 +100,7 @@ impl JsArray { /// Calls `Array.prototype.unshift()`. #[inline] pub fn unshift(&self, items: &[JsValue], context: &mut Context) -> JsResult { - Array::shift(&self.inner.clone().into(), items, context) + Array::unshift(&self.inner.clone().into(), items, context) } /// Calls `Array.prototype.reverse()`.