We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
_ReuseLoc
1 parent 9904051 commit 31ec493Copy full SHA for 31ec493
lib/Runtime/ByteCode/ByteCodeEmitter.cpp
@@ -70,7 +70,7 @@ static void EmitOptionalChainWrapper(ParseNodeUni *pnodeOptChain, ByteCodeGenera
70
// Acquire slot for the result value
71
Js::RegSlot resultSlot = funcInfo->AcquireLoc(pnodeOptChain);
72
// Copy chain result
73
- byteCodeGenerator->Writer()->Reg2(Js::OpCode::Ld_A_ReuseLoc, resultSlot, innerNode->location);
+ byteCodeGenerator->Writer()->Reg2(Js::OpCode::Ld_A, resultSlot, innerNode->location);
74
75
// Skip short-circuiting logic
76
Js::ByteCodeLabel doneLabel = byteCodeGenerator->Writer()->DefineLabel();
0 commit comments