Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions Jint/Native/Function/FunctionInstance.Dynamic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,13 @@ internal Function CreateDynamicFunction(
switch (kind)
{
case FunctionKind.Normal:
functionExpression = "function f(){}";
functionExpression = "function " + _functionNameAnonymous + "(){}";
break;
case FunctionKind.Generator:
functionExpression = "function* f(){}";
functionExpression = "function* " + _functionNameAnonymous + "(){}";
break;
case FunctionKind.Async:
functionExpression = "async function f(){}";
functionExpression = "async function " + _functionNameAnonymous + "(){}";
break;
case FunctionKind.AsyncGenerator:
ExceptionHelper.ThrowNotImplementedException("Async generators not implemented");
Expand All @@ -102,13 +102,13 @@ internal Function CreateDynamicFunction(
switch (kind)
{
case FunctionKind.Normal:
functionExpression = "function f(";
functionExpression = "function " + _functionNameAnonymous + "(";
break;
case FunctionKind.Async:
functionExpression = "async function f(";
functionExpression = "async function " + _functionNameAnonymous + "(";
break;
case FunctionKind.Generator:
functionExpression = "function* f(";
functionExpression = "function* " + _functionNameAnonymous +"(";
break;
case FunctionKind.AsyncGenerator:
ExceptionHelper.ThrowNotImplementedException("Async generators not implemented");
Expand Down