Skip to content

Commit a1ba90c

Browse files
committed
The toString() of 'class' and 'function' return SourceText
1 parent 41a488a commit a1ba90c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Jint/Native/Function/Function.cs

+1
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,7 @@ public override string ToString()
381381
{
382382
return _sourceText;
383383
}
384+
384385
var nameValue = _nameDescriptor != null ? UnwrapJsValue(_nameDescriptor) : JsString.Empty;
385386
var name = "";
386387
if (!nameValue.IsUndefined())

0 commit comments

Comments
 (0)