From 2e1392bb04c95a7f10883002f4ac17e5d31e6704 Mon Sep 17 00:00:00 2001 From: Wyatt Richter Date: Tue, 11 Sep 2018 16:31:27 -0700 Subject: [PATCH] Forgot to change a variable name --- lib/Runtime/ByteCode/ByteCodeWriter.cpp | 2 +- lib/Runtime/ByteCode/ByteCodeWriter.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Runtime/ByteCode/ByteCodeWriter.cpp b/lib/Runtime/ByteCode/ByteCodeWriter.cpp index 2147c421350..a05a7e1c8da 100644 --- a/lib/Runtime/ByteCode/ByteCodeWriter.cpp +++ b/lib/Runtime/ByteCode/ByteCodeWriter.cpp @@ -1424,7 +1424,7 @@ namespace Js } #endif - if (this->m_functionWrite->GetIsStrictMode() || forceStrictModeForClassComputedPropertyName) + if (this->m_functionWrite->GetIsStrictMode() || forceStrictMode) { if (op == OpCode::ScopedDeleteFld) { diff --git a/lib/Runtime/ByteCode/ByteCodeWriter.h b/lib/Runtime/ByteCode/ByteCodeWriter.h index 9489f895e88..77f85584d3a 100644 --- a/lib/Runtime/ByteCode/ByteCodeWriter.h +++ b/lib/Runtime/ByteCode/ByteCodeWriter.h @@ -269,10 +269,10 @@ namespace Js void CallI(OpCode op, RegSlot returnValueRegister, RegSlot functionRegister, ArgSlot givenArgCount, ProfileId callSiteId, CallFlags callFlags = CallFlags_None); void CallIExtended(OpCode op, RegSlot returnValueRegister, RegSlot functionRegister, ArgSlot givenArgCount, CallIExtendedOptions options, const void *buffer, uint byteCount, ProfileId callSiteId, CallFlags callFlags = CallFlags_None); void RemoveEntryForRegSlotFromCacheIdMap(RegSlot functionRegister); - void Element(OpCode op, RegSlot value, RegSlot instance, RegSlot element, bool instanceAtReturnRegOK = false, bool forceStrictModeForClassComputedPropertyName = false); + void Element(OpCode op, RegSlot value, RegSlot instance, RegSlot element, bool instanceAtReturnRegOK = false, bool forceStrictMode = false); void ElementUnsigned1(OpCode op, RegSlot value, RegSlot instance, uint32 element); - void Property(OpCode op, RegSlot Value, RegSlot Instance, PropertyIdIndexType propertyIdIndex, bool forceStrictModeForClassComputedPropertyName = false); - void ScopedProperty(OpCode op, RegSlot Value, PropertyIdIndexType propertyIdIndex, bool forceStrictModeForClassComputedPropertyName = false); + void Property(OpCode op, RegSlot Value, RegSlot Instance, PropertyIdIndexType propertyIdIndex, bool forceStrictMode = false); + void ScopedProperty(OpCode op, RegSlot Value, PropertyIdIndexType propertyIdIndex, bool forceStrictMode = false); void Slot(OpCode op, RegSlot value, RegSlot instance, uint32 slotId); void Slot(OpCode op, RegSlot value, RegSlot instance, uint32 slotId, ProfileId profileId); void SlotI1(OpCode op, RegSlot value, uint32 slotId1);