| Index: src/debug/arm64/debug-arm64.cc
|
| diff --git a/src/debug/arm64/debug-arm64.cc b/src/debug/arm64/debug-arm64.cc
|
| index 599815bf540cf8d9837575669c901a4e93d0735a..50819bcfbd290db60a3255eaefd25793ff7652a4 100644
|
| --- a/src/debug/arm64/debug-arm64.cc
|
| +++ b/src/debug/arm64/debug-arm64.cc
|
| @@ -148,6 +148,9 @@ void DebugCodegen::GenerateFrameDropperLiveEdit(MacroAssembler* masm) {
|
| // Load context from the function.
|
| __ Ldr(cp, FieldMemOperand(x1, JSFunction::kContextOffset));
|
|
|
| + // Clear new.target as a safety measure.
|
| + __ LoadRoot(x3, Heap::kUndefinedValueRootIndex);
|
| +
|
| // Get function code.
|
| __ Ldr(scratch, FieldMemOperand(x1, JSFunction::kSharedFunctionInfoOffset));
|
| __ Ldr(scratch, FieldMemOperand(scratch, SharedFunctionInfo::kCodeOffset));
|
|
|