|
@@ -1,4 +1,5 @@
|
|
|
using Esprima.Ast;
|
|
|
+using Jint.Native;
|
|
|
using Jint.Native.Function;
|
|
|
|
|
|
namespace Jint.Runtime.Interpreter.Expressions
|
|
@@ -25,6 +26,11 @@ namespace Jint.Runtime.Interpreter.Expressions
|
|
|
FunctionThisMode.Lexical,
|
|
|
proto: engine.Realm.Intrinsics.Function.PrototypeObject);
|
|
|
|
|
|
+ if (_function.Name is null)
|
|
|
+ {
|
|
|
+ closure.SetFunctionName(JsString.Empty);
|
|
|
+ }
|
|
|
+
|
|
|
return NormalCompletion(closure);
|
|
|
}
|
|
|
}
|