Skip to content

Commit

Permalink
Remove useless setParent call and related condition.
Browse files Browse the repository at this point in the history
  • Loading branch information
rhuanjl committed Jan 29, 2018
1 parent 8384c14 commit 4729633
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/Jsrt/Core/JsrtCore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ JsInitializeModuleRecord(
if (normalizedSpecifier != JS_INVALID_REFERENCE)
{
childModuleRecord->SetSpecifier(normalizedSpecifier);
if (Js::SourceTextModuleRecord::Is(referencingModule) && Js::JavascriptString::Is(normalizedSpecifier))
{
childModuleRecord->SetParent(Js::SourceTextModuleRecord::FromHost(referencingModule), Js::JavascriptString::FromVar(normalizedSpecifier)->GetSz());
}
}
return JsNoError;
});
Expand Down

0 comments on commit 4729633

Please sign in to comment.