@@ -1494,7 +1494,7 @@ JSValue LiteralParser<CharType, reviverMode>::parseRecursively(VM& vm, uint8_t*
14941494 m_parseErrorMessage = " Attempted to redefine __proto__ property" _s;
14951495 return { };
14961496 }
1497- PutPropertySlot slot (object, m_nullOrCodeBlock ? m_nullOrCodeBlock->ownerExecutable ()->isInStrictContext () : false );
1497+ PutPropertySlot slot (object, m_nullOrCodeBlock && m_nullOrCodeBlock->ownerExecutable ()->isInStrictContext ());
14981498 JSValue (object).put (m_globalObject, ident, value, slot);
14991499 RETURN_IF_EXCEPTION (scope, { });
15001500 } else if (std::optional<uint32_t > index = parseIndex (ident)) {
@@ -1672,7 +1672,7 @@ JSValue LiteralParser<CharType, reviverMode>::parse(VM& vm, ParserState initialS
16721672 m_parseErrorMessage = " Attempted to redefine __proto__ property" _s;
16731673 return { };
16741674 }
1675- PutPropertySlot slot (object, m_nullOrCodeBlock ? m_nullOrCodeBlock->ownerExecutable ()->isInStrictContext () : false );
1675+ PutPropertySlot slot (object, m_nullOrCodeBlock && m_nullOrCodeBlock->ownerExecutable ()->isInStrictContext ());
16761676 JSValue (object).put (m_globalObject, ident, primitive, slot);
16771677 RETURN_IF_EXCEPTION (scope, { });
16781678 } else {
@@ -1767,7 +1767,7 @@ JSValue LiteralParser<CharType, reviverMode>::parse(VM& vm, ParserState initialS
17671767 m_parseErrorMessage = " Attempted to redefine __proto__ property" _s;
17681768 return { };
17691769 }
1770- PutPropertySlot slot (object, m_nullOrCodeBlock ? m_nullOrCodeBlock->ownerExecutable ()->isInStrictContext () : false );
1770+ PutPropertySlot slot (object, m_nullOrCodeBlock && m_nullOrCodeBlock->ownerExecutable ()->isInStrictContext ());
17711771 JSValue (object).put (m_globalObject, ident, lastValue, slot);
17721772 RETURN_IF_EXCEPTION (scope, { });
17731773 } else {
0 commit comments