Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
beyaz committed Dec 28, 2024
1 parent ece5bf1 commit 94e79e4
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions ReactWithDotNet/JsClientEngine/clr.js
Original file line number Diff line number Diff line change
Expand Up @@ -2830,7 +2830,24 @@ function Interpret(thread)

case 124: // Ldsflda
{
NotImplementedOpCode(); break;
let fieldReference = AllFields[operands[currentStackFrame.Line]];

let map = StaticFields[fieldReference.DeclaringType];
if (map == null)
{
evaluationStack.push(fieldReference.DeclaringType);
nextInstruction = 228;
break;
}

evaluationStack.push({
$isAddress: 1,
$object: map,
$key: fieldReference.Name
});

nextInstruction = instructions[++currentStackFrame.Line];
break;
}
case 125: // Stsfld
{
Expand Down Expand Up @@ -2952,12 +2969,6 @@ function Interpret(thread)

nextInstruction = instructions[++currentStackFrame.Line];
break;


evaluationStack.push(operands[currentStackFrame.Line]);
evaluationStack.push(InterpreterBridge_NewArr);
nextInstruction = InterpreterBridge_Jump;
break;
}
case 139: // Ldlen
{
Expand Down

0 comments on commit 94e79e4

Please sign in to comment.