Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-174073

[Script API] Unexpected change to properties of native classes

XMLWordPrintable

    • Unconfirmed
    • Multiple

      Unexpected change to design of prototype properties including stable APIs as well.

      Properties are no longer configurable, this change doesn't applies to methods, only to getters/setters prototype properties.

      Steps to reproduce:

       - Try using defineProperty/defineProperties to redefine native properties
       - Unexpected result, in version 1.20.30.20 will throw error, property is not configurable

      Expected behavior

      This change doesn't follows ECMAScript 6 standards for classes and their prototype fields,

      • enumerable: false
      • configurable: true

      This change shouldn't apply to stable version of modules

      Pack to reproduce is available

      • compare results on versions 1.20.30.20+, and MC release 1.20.20--

            ConMaster2112 ConMaster2112
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: