Skip to content

Commit 8216a56

Browse files
committed
wip
1 parent 6a60df8 commit 8216a56

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Jint/Runtime/Interpreter/Statements/JintForInForOfStatement.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,11 @@ private Completion BodyEvaluation(
287287
if (result.Type != CompletionType.Continue || (result.Target != null && result.Target != _statement?.LabelSet?.Name))
288288
{
289289
completionType = result.Type;
290+
if (iterationKind == IterationKind.Enumerate)
291+
{
292+
// TODO make sure we can start from where we left off
293+
//return result;
294+
}
290295
if (result.IsAbrupt())
291296
{
292297
close = true;

Jint/Runtime/Modules/SourceTextModuleRecord.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,7 @@ protected override void InitializeEnvironment()
306306
var fn = d.Id?.Name ?? "*default*";
307307
var fd = new JintFunctionDefinition(_engine, d);
308308
env.CreateMutableBinding(fn, true);
309+
// TODO private scope
309310
var fo = realm.Intrinsics.Function.InstantiateFunctionObject(fd, env, privateScope: null);
310311
if (fn == "*default*")
311312
{

0 commit comments

Comments
 (0)