Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Commit

Permalink
Fixing lint issue in jsrtisolateshim.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
MSLaguana committed Sep 25, 2017
1 parent fb8af2d commit 91a8760
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions deps/chakrashim/src/jsrtisolateshim.cc
Original file line number Diff line number Diff line change
Expand Up @@ -535,15 +535,21 @@ JsPropertyIdRef IsolateShim::GetCachedPropertyIdRef(
}

JsPropertyIdRef IsolateShim::GetToStringTagSymbolPropertyIdRef() {
return GetCachedPropertyId(cachedPropertyIdRefs, CachedPropertyIdRef::Symbol_toStringTag,
[this](CachedPropertyIdRef index, JsPropertyIdRef* propIdRef) {
return GetCachedPropertyId(cachedPropertyIdRefs,
CachedPropertyIdRef::Symbol_toStringTag,
[this](CachedPropertyIdRef index, JsPropertyIdRef* propIdRef) {
JsValueRef toStringTagSymbol;
if (JsGetProperty(this->GetCurrentContextShim()->GetGlobalType(ContextShim::GlobalType::Symbol),
this->GetCachedPropertyIdRef(jsrt::CachedPropertyIdRef::toStringTag),
JsValueRef symbolObject =
this->GetCurrentContextShim()
->GetGlobalType(ContextShim::GlobalType::Symbol);
JsPropertyIdRef toStringTag = this
->GetCachedPropertyIdRef(jsrt::CachedPropertyIdRef::toStringTag);
if (JsGetProperty(symbolObject,
toStringTag,
&toStringTagSymbol) != JsNoError) {
return false;
}

if (JsGetPropertyIdFromSymbol(toStringTagSymbol, propIdRef) != JsNoError) {
return false;
}
Expand Down

0 comments on commit 91a8760

Please sign in to comment.