Skip to content

Commit 92c3acf

Browse files
committed
[MERGE #4585 @rhuanjl] Remove useless setParent call and related condition.
Merge pull request #4585 from rhuanjl:setparent Follow up to issue: #3638 The issue was already fixed by removing the unnecessary assert: #4548 But - it highlighted another small issue. The setParent call in JsrtCore is useless - it results in several operations all of which have no useful end result. (No test case included as this doesn't fix a bug it just removes useless code)
2 parents ed21221 + 219fe44 commit 92c3acf

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lib/Jsrt/Core/JsrtCore.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@ JsInitializeModuleRecord(
2727
if (normalizedSpecifier != JS_INVALID_REFERENCE)
2828
{
2929
childModuleRecord->SetSpecifier(normalizedSpecifier);
30-
if (Js::SourceTextModuleRecord::Is(referencingModule) && Js::JavascriptString::Is(normalizedSpecifier))
31-
{
32-
childModuleRecord->SetParent(Js::SourceTextModuleRecord::FromHost(referencingModule), Js::JavascriptString::FromVar(normalizedSpecifier)->GetSz());
33-
}
3430
}
3531
return JsNoError;
3632
});

0 commit comments

Comments
 (0)