Pārlūkot izejas kodu

Don't unwrap a with object outside of a with scope.

Fixes #6237
Kevin Smith 6 gadi atpakaļ
vecāks
revīzija
711c445896
1 mainītis faili ar 0 papildinājumiem un 1 dzēšanām
  1. 0 1
      lib/Runtime/ByteCode/ByteCodeEmitter.cpp

+ 0 - 1
lib/Runtime/ByteCode/ByteCodeEmitter.cpp

@@ -5495,7 +5495,6 @@ void ByteCodeGenerator::EmitPropTypeof(Js::RegSlot lhsLocation, Symbol *sym, Ide
                 Js::RegSlot instLocation = funcInfo->AcquireTmpRegister();
 
                 this->m_writer.SlotI1(Js::OpCode::LdEnvObj, instLocation, frameDisplayIndex);
-                this->m_writer.Reg2(Js::OpCode::UnwrapWithObj, instLocation, instLocation);
 
                 this->EmitTypeOfFld(funcInfo, propertyId, lhsLocation, instLocation, Js::OpCode::LdFldForTypeOf);