diff --git a/crates/dash_vm/src/js_std/string.rs b/crates/dash_vm/src/js_std/string.rs index 5fa1b034..36a84ced 100644 --- a/crates/dash_vm/src/js_std/string.rs +++ b/crates/dash_vm/src/js_std/string.rs @@ -360,7 +360,7 @@ pub fn trim_start(cx: CallContext) -> Result { pub fn trim_end(cx: CallContext) -> Result { let string = cx.this.to_js_string(cx.scope)?; - let result = string.res(cx.scope).trim_start().to_owned(); + let result = string.res(cx.scope).trim_end().to_owned(); Ok(Value::string(cx.scope.intern(result.as_ref()).into())) }