mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-25 19:21:11 +08:00
feat: 内核与内置层增 Atomics 对象槽位与十方法
This commit is contained in:
@@ -314,6 +314,11 @@ impl BuiltinWorld {
|
||||
} else {
|
||||
(current.shared_array_buffer_proto.clone(), current.shared_array_buffer_constructor.clone())
|
||||
};
|
||||
let atomics_object = if dirty.atomics {
|
||||
P::new(JsObject::new_empty(EMPTY_SHAPE_ID, JsValue::null()))
|
||||
} else {
|
||||
current.atomics_object.clone()
|
||||
};
|
||||
let (data_view_proto, data_view_constructor) = if dirty.data_view {
|
||||
make_named_pair(string_forge, shape_forge, labels, "DataView")
|
||||
} else {
|
||||
@@ -518,6 +523,7 @@ impl BuiltinWorld {
|
||||
array_buffer_proto,
|
||||
shared_array_buffer_proto,
|
||||
shared_array_buffer_constructor,
|
||||
atomics_object,
|
||||
data_view_constructor,
|
||||
data_view_proto,
|
||||
typed_array_proto: typed_arrays.typed_array_proto,
|
||||
|
||||
Reference in New Issue
Block a user