Skip to content
This repository was archived by the owner on Jan 25, 2022. It is now read-only.

Commit c784232

Browse files
replace reference of Global Name with initial value of name property
1 parent 6faa713 commit c784232

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proposal.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ <h1>(<a href="http://tc39.github.io/ecma262/#sec-function.prototype.tostring">19
485485

486486
<ins class="block">
487487
<emu-alg>
488-
1. If _func_ is a <emu-xref href="#sec-bound-function-exotic-objects">Bound Function exotic object</emu-xref> or a <emu-xref href="#sec-ecmascript-standard-built-in-objects">built-in Function object</emu-xref>, then return an implementation-dependent String source code representation of _func_. The representation must have the syntax of a |NativeFunction|. Additionally, if _func_ is a <emu-xref href="#sec-well-known-intrinsic-objects">Well-known Intrinsic Object</emu-xref> and the Global Name associated with _func_ has the syntax of a |BindingIdentifier|, the portion of the returned String that would be matched by |BindingIdentifier| must be the same as the Global Name associated with _func_.
488+
1. If _func_ is a <emu-xref href="#sec-bound-function-exotic-objects">Bound Function exotic object</emu-xref> or a <emu-xref href="#sec-ecmascript-standard-built-in-objects">built-in Function object</emu-xref>, then return an implementation-dependent String source code representation of _func_. The representation must have the syntax of a |NativeFunction|. Additionally, if _func_ is a <emu-xref href="#sec-well-known-intrinsic-objects">Well-known Intrinsic Object</emu-xref>, the portion of the returned String that would be matched by |BindingIdentifier| must be the initial value of the *name* property of _func_.
489489
1. If _func_ has a [[SourceText]] internal slot and _func_.[[SourceText]] is not *undefined*
490490
1. Let _sourceText_ be _func_.[[SourceText]].
491491
1. Let _sourceText_ be _sourceText_ with all occurrences of the code unit sequence 0x000D (CARRIAGE RETURN) 0x000A (LINE FEED) replaced with the single code unit 0x000A (LINE FEED).

0 commit comments

Comments
 (0)