Skip to content

Commit

Permalink
fix very minor typo shift -> unshift (#4097)
Browse files Browse the repository at this point in the history
  • Loading branch information
albertleigh authored Dec 26, 2024
1 parent 71c6e7b commit 1af4494
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/engine/src/object/builtins/jsarray.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ impl JsArray {
/// Calls `Array.prototype.unshift()`.
#[inline]
pub fn unshift(&self, items: &[JsValue], context: &mut Context) -> JsResult<JsValue> {
Array::shift(&self.inner.clone().into(), items, context)
Array::unshift(&self.inner.clone().into(), items, context)
}

/// Calls `Array.prototype.reverse()`.
Expand Down

0 comments on commit 1af4494

Please sign in to comment.