Skip to content

Commit 80e661c

Browse files
committed
Simplify propertyString instantiation
1 parent ff58853 commit 80e661c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Runtime/Library/JavascriptProxy.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1029,7 +1029,7 @@ namespace Js
10291029
// let desc = Reflect.getOwnPropertyDescriptor(obj, key);
10301030
Js::PropertyDescriptor desc;
10311031
BOOL ret = JavascriptOperators::GetOwnPropertyDescriptor(proxy, propertyName, scriptContext, &desc);
1032-
const JsUtil::CharacterBuffer<WCHAR> propertyString = JsUtil::CharacterBuffer<WCHAR>(propertyName->GetString(), propertyName->GetLength());
1032+
const JsUtil::CharacterBuffer<WCHAR> propertyString(propertyName->GetString(), propertyName->GetLength());
10331033
// if (desc && !visited.has(key)) {
10341034
if (ret && !visited->Contains(propertyString))
10351035
{

0 commit comments

Comments
 (0)