diff --git a/proposal.html b/proposal.html index 71f856b..8220bbc 100644 --- a/proposal.html +++ b/proposal.html @@ -528,11 +528,7 @@

(19 1. If _func_ is a Bound Function exotic object or a built-in Function object, 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 Well-known Intrinsic Object, the portion of the returned String that would be matched by |IdentifierName| must be the initial value of the *name* property of _func_. - 1. If _func_ has a [[SourceText]] internal slot and Type(_func_.[[SourceText]]) is String - 1. Let _sourceText_ be _func_.[[SourceText]]. - 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). - 1. Let _sourceText_ be _sourceText_ with all occurrences of the code unit 0x000D (CARRIAGE RETURN) replaced with 0x000A (LINE FEED). - 1. Return _sourceText_. + 1. If _func_ has a [[SourceText]] internal slot and Type(_func_.[[SourceText]]) is String, then return _func_.[[SourceText]]. 1. If Type(_func_) is Object and IsCallable(_func_) is *true*, then return an implementation-dependent String source code representation of _func_. The representation must have the syntax of a |NativeFunction|. 1. Throw a *TypeError* exception.