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

[Script API] Unexpected change to properties of native classes


    • 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 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, and MC release 1.20.20--

            ConMaster2112 ConMaster2112
            0 Vote for this issue
            3 Start watching this issue