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()`.