feat: 搭建 Iterator 与 for-of 语法基础设施

This commit is contained in:
爱特每羊队
2026-06-08 13:48:54 +08:00
parent 4d60491e0e
commit 3880882fda
12 changed files with 246 additions and 4 deletions
@@ -45,6 +45,11 @@ pub fn bind_symbol(kernel: &Arc<OxideKernel>, global: &mut JsObject) {
);
bind_well_known_symbol(kernel, ctor, sf, sh, "split", sym_split_val);
let sym_iterator_val = JsValue::from_js_object(
kernel.builtin_world().sym_iterator.as_ptr() as *mut JsObject,
);
bind_well_known_symbol(kernel, ctor, sf, sh, "iterator", sym_iterator_val);
bind_constructor_hash!(
kernel,
global,