Skip to content

fix(webpack/transform): Change NativeClass properties to enumerable #8813

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

PeterStaev
Copy link
Contributor

PR Checklist

What is the current behavior?

With TS 3.9+ when transpiling TS to ES5 if a property has a get/set defined, it marks the properties as enumerable: false. (TS commit reference) This prevents v8/JSC to correctly access them.

What is the new behavior?

The added regex patches the output of the transpile and marks all properties as enumerable: true

Fixes/Implements/Closes #[Issue Number].

@cla-bot
Copy link

cla-bot bot commented Sep 3, 2020

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign the CLA at https://www.nativescript.org/cla.
CLA has not been signed by users: @PeterStaev.
After signing the CLA, you can ask me to recheck this PR by posting @cla-bot check as a comment to the PR.

@PeterStaev
Copy link
Contributor Author

@cla-bot check

@cla-bot cla-bot bot added the cla: yes label Sep 3, 2020
@cla-bot
Copy link

cla-bot bot commented Sep 3, 2020

The cla-bot has been summoned, and re-checked this pull request!

@NathanWalker NathanWalker merged commit e4a2930 into NativeScript:master Sep 3, 2020
tarunama pushed a commit to tarunama/NativeScript that referenced this pull request Sep 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants