Skip to content

Commit 062ef9f

Browse files
author
Kevin Smith
committed
[MERGE #6272 @rhuanjl] ModuleEvaluation should return undefined
Merge pull request #6272 from rhuanjl:moduleReturnUndefined Picking up on discussion in #6266 this reverts an unintended side-effect of #6171 The successful completion value of a module is `undefined` - this was not tested and the change in #6171 had resulted in it being `{done : true}` instead.
2 parents e79d68a + bcde2bd commit 062ef9f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/Runtime/Language/SourceTextModuleRecord.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,6 +1103,7 @@ namespace Js
11031103
{
11041104
ResumeYieldData yieldData(scriptContext->GetLibrary()->GetUndefined(), nullptr);
11051105
ret = gen->CallGenerator(&yieldData, _u("Module Global"));
1106+
ret = JavascriptOperators::GetProperty(VarTo<RecyclableObject>(ret), PropertyIds::value, scriptContext);
11061107
}
11071108
END_SAFE_REENTRANT_CALL
11081109
}

0 commit comments

Comments
 (0)