Skip to content

Commit 711c445

Browse files
Kevin SmithKevin Smith
authored andcommitted
Don't unwrap a with object outside of a with scope.
Fixes #6237
1 parent de37cbe commit 711c445

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/Runtime/ByteCode/ByteCodeEmitter.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5495,7 +5495,6 @@ void ByteCodeGenerator::EmitPropTypeof(Js::RegSlot lhsLocation, Symbol *sym, Ide
54955495
Js::RegSlot instLocation = funcInfo->AcquireTmpRegister();
54965496

54975497
this->m_writer.SlotI1(Js::OpCode::LdEnvObj, instLocation, frameDisplayIndex);
5498-
this->m_writer.Reg2(Js::OpCode::UnwrapWithObj, instLocation, instLocation);
54995498

55005499
this->EmitTypeOfFld(funcInfo, propertyId, lhsLocation, instLocation, Js::OpCode::LdFldForTypeOf);
55015500

0 commit comments

Comments
 (0)