From 514545dd777b3a5aebda3187eb628038dd108aa0 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Thu, 18 Jun 2020 14:45:56 -0700 Subject: [PATCH] Editorial: use dotted JavaScript intrinsics form Follows https://github.com/tc39/ecma262/pull/1376, and prevents problems in the future when the non-dotted forms are deleted. --- source | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/source b/source index 246c45b74e5..b3b306adf82 100644 --- a/source +++ b/source @@ -2745,18 +2745,18 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute @@toPrimitive, and @@toStringTag
  • Well-Known Intrinsic Objects, including - %ArrayPrototype%, - %ErrorPrototype%, - %EvalErrorPrototype%, - %FunctionPrototype%, - %JSONParse%, - %ObjectPrototype%, - %ObjProto_valueOf%, - %RangeErrorPrototype%, - %ReferenceErrorPrototype%, - %SyntaxErrorPrototype%, - %TypeErrorPrototype%, and - %URIErrorPrototype%
  • + %Array.prototype%, + %Error.prototype%, + %EvalError.prototype%, + %Function.prototype%, + %JSON.parse%, + %Object.prototype%, + %Object.prototype.valueOf%, + %RangeError.prototype%, + %ReferenceError.prototype%, + %SyntaxError.prototype%, + %TypeError.prototype%, and + %URIError.prototype%
  • The FunctionBody production
  • The Module production
  • @@ -8141,7 +8141,7 @@ interface DOMStringList {
  • Otherwise, if value is an exotic object and value is not the - %ObjectPrototype% intrinsic object associated with any JavaScript + %Object.prototype% intrinsic object associated with any JavaScript realm, then throw a "DataCloneError" DOMException.

    @@ -8158,7 +8158,7 @@ interface DOMStringList {
  • Set deep to true.

  • -

    %ObjectPrototype% will end up being handled via this step and +

    %Object.prototype% will end up being handled via this step and subsequent steps. The end result is that its exoticness is ignored, and after deserialization the result will be an empty object (not an immutable prototype exotic object). @@ -8456,7 +8456,7 @@ o.myself = o;

    1. Let outputProto be - targetRealm.[[Intrinsics]].[[%ArrayPrototype%]].

    2. + targetRealm.[[Intrinsics]].[[%Array.prototype%]].

    3. Set value to ! ArrayCreate(serialized.[[Length]], outputProto).

    4. @@ -8479,25 +8479,25 @@ o.myself = o;

      Otherwise, if serialized.[[Type]] is "Error", then:

        -
      1. Let prototype be %ErrorPrototype%.

      2. +
      3. Let prototype be %Error.prototype%.

      4. If serialized.[[Name]] is "EvalError", then set prototype to - %EvalErrorPrototype%.

      5. + %EvalError.prototype%.

      6. If serialized.[[Name]] is "RangeError", then set prototype - to %RangeErrorPrototype%.

      7. + to %RangeError.prototype%.

      8. If serialized.[[Name]] is "ReferenceError", then set - prototype to %ReferenceErrorPrototype%.

      9. + prototype to %ReferenceError.prototype%.

      10. If serialized.[[Name]] is "SyntaxError", then set prototype - to %SyntaxErrorPrototype%.

      11. + to %SyntaxError.prototype%.

      12. If serialized.[[Name]] is "TypeError", then set prototype to - %TypeErrorPrototype%.

      13. + %TypeError.prototype%.

      14. If serialized.[[Name]] is "URIError", then set prototype to - %URIErrorPrototype%.

      15. + %URIError.prototype%.

      16. Let message be serialized.[[Message]].

      17. @@ -80707,7 +80707,7 @@ State: <OUTPUT NAME=I>1</OUTPUT> <INPUT VALUE="Increment" TYPE=BUTTON O
      18. Let valueOf be location's relevant - Realm.[[Intrinsics]].[[%ObjProto_valueOf%]].

      19. + Realm.[[Intrinsics]].[[%Object.prototype.valueOf%]].

      20. Perform ! location.[[DefineOwnProperty]]("valueOf", { [[Value]]: valueOf, @@ -90859,7 +90859,7 @@ typedef OnBeforeUnloadEventHandlerNonNull? OnBeforeUnloadEvent

        functionPrototype
        -
        %FunctionPrototype%
        +
        %Function.prototype%
        sourceText