fix: defineProperty 内部错误不触发 unwind + enumerable/configurable 缺省回填

This commit is contained in:
2026-08-08 01:18:21 +08:00
parent 88e11748ff
commit 7e11a4d2b4
4 changed files with 51 additions and 49 deletions
+4 -1
View File
@@ -118,7 +118,10 @@ impl Vm {
} else {
setter
};
self.define_accessor_property(obj, prop_name_si, get, set, PropAttributes::DEFAULT_DATA)
match self.define_accessor_property(obj, prop_name_si, get, set, PropAttributes::DEFAULT_DATA) {
Ok(()) => Ok(()),
Err(msg) => self.raise_error_kind("TypeError", &msg),
}
}
pub(crate) fn dispatch_return(&mut self, rd: usize) -> Result<Option<JsValue>, String> {