Skip to content

Commit

Permalink
Import bindings should be initialized as immutable undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
christianrondeau committed Mar 8, 2022
1 parent 528cba7 commit 801e7e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Jint/Runtime/Environments/ModuleEnvironmentRecord.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public void CreateImportBinding(string importName, ModuleRecord module, string n
{
_hasBindings = true;
_importBindings[importName] = new IndirectBinding(module, name);
CreateImmutableBindingAndInitialize(importName, true, JsValue.Undefined);
}

/// <summary>
Expand Down

0 comments on commit 801e7e9

Please sign in to comment.