Skip to content

Commit 44405b2

Browse files
committed
.
1 parent 71b8ed5 commit 44405b2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Asynkron.JsEngine/EvalHostFunction.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ public sealed class EvalHostFunction : IJsEnvironmentAwareCallable, IEvaluationC
2222
public EvalHostFunction(JsEngine engine)
2323
{
2424
_engine = engine ?? throw new ArgumentNullException(nameof(engine));
25+
if (_engine.RealmState.FunctionPrototype is { } functionPrototype)
26+
{
27+
_properties.SetPrototype(functionPrototype);
28+
}
2529
_properties.SetProperty("prototype", new JsObject());
2630
}
2731

0 commit comments

Comments
 (0)