mrchnk commented on issue #169:
URL: https://github.com/apache/royale-compiler/issues/169#issuecomment-747019062


   I think a simple solution could be replace `Object.defineProperty` by 
`Object.defineProperties`
   ```
   Enum.get___registry = function() {
     var value = new EnumRegistry();
     Object.defineProperties(Enum, {
       _registry: { 
         value: value, 
         writable: false 
       }
     });
     return value;
   };
   ```
   somewhere at
   
https://github.com/apache/royale-compiler/blob/6f75df78d08d3c4a7f81a8d25d96b978972ee480/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/jx/FieldEmitter.java#L220-L228


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to