From 48b7d0465d2fd8b3d279d75ce6776461458f7cb3 Mon Sep 17 00:00:00 2001 From: jedel1043 Date: Sun, 24 Sep 2023 19:28:28 -0600 Subject: [PATCH] Apply review --- boa_engine/src/builtins/options.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) => {