diff --git a/boa_engine/src/builtins/options.rs b/boa_engine/src/builtins/options.rs index e821363f4c3..b67471a8c75 100644 --- a/boa_engine/src/builtins/options.rs +++ b/boa_engine/src/builtins/options.rs @@ -87,7 +87,7 @@ pub(crate) fn get_options_object(options: &JsValue) -> JsResult { // If options is undefined, then JsValue::Undefined => { // a. Return OrdinaryObjectCreate(null). - Ok(JsObject::from_proto_and_data(None, ObjectData::ordinary())) + Ok(JsObject::with_null_proto()) } // 2. If Type(options) is Object, then JsValue::Object(obj) => {