Skip to content
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

Private fields and methods support #913

Merged
merged 7 commits into from
Jan 28, 2021

Conversation

rricard
Copy link
Contributor

@rricard rricard commented Jan 15, 2021

This PR fixes #702.

@rricard rricard marked this pull request as ready for review January 18, 2021 11:13
lib/output.js Show resolved Hide resolved
Copy link
Contributor

@L2jLiga L2jLiga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks promising!

@rricard
Copy link
Contributor Author

rricard commented Jan 28, 2021

Hi @fabiosantoscode I just wanted to know when you can review this pr. Feel free to let me know what I can do to push this forward or anything that I can do to make the review easier. Thank you!

@fabiosantoscode
Copy link
Collaborator

Hey there! I totally missed your updates. This is looking pretty good, and it even has support for private optional properties. I think it's good to merge!

@fabiosantoscode fabiosantoscode merged commit 465334d into terser:master Jan 28, 2021
@rricard
Copy link
Contributor Author

rricard commented Jan 28, 2021

Amazing, thank you! No problem, github notifications can be a bit overwhelming sometimes!

darkdh added a commit to brave/brave-core that referenced this pull request Feb 13, 2023
https://chromium-review.googlesource.com/c/chromium/src/+/4218203

WebUI: Roll Terser to v5.16.2

The existing version of Terser is 2 years old (5.3.3) and does not
support features like static initialization blocks.

No size changes were observed in the Print Preview and Settings
.rollup.js files. polymer_bundled.min.js was observed to slightly
decrease in size (~30 bytes) when regenerated with reproduce.sh.

Bug: 1412524
Change-Id: I0f5d58ac18f3a50cfedc095b278445122d33c5c4
Reviewed-on:
https://chromium-review.googlesource.com/c/chromium/src/+/4218203
Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org>
Commit-Queue: Rebekah Potter <rbpotter@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1100754}

---

The reason we need this is because `terser` that chromium used is too
old and it doesn’t support [Private fields and methods](terser/terser#913)
so that is why we will see
[this](https://bravesoftware.slack.com/archives/C7VLGSR55/p1675990758314239)
on Android release build due to `_strip_resource_files = is_android &&
is_official_build` in `//tools/grit/grit_rule.gni`
darkdh added a commit to brave/brave-core that referenced this pull request Feb 13, 2023
https://chromium-review.googlesource.com/c/chromium/src/+/4218203

WebUI: Roll Terser to v5.16.2

The existing version of Terser is 2 years old (5.3.3) and does not
support features like static initialization blocks.

No size changes were observed in the Print Preview and Settings
.rollup.js files. polymer_bundled.min.js was observed to slightly
decrease in size (~30 bytes) when regenerated with reproduce.sh.

Bug: 1412524
Change-Id: I0f5d58ac18f3a50cfedc095b278445122d33c5c4
Reviewed-on:
https://chromium-review.googlesource.com/c/chromium/src/+/4218203
Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org>
Commit-Queue: Rebekah Potter <rbpotter@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1100754}

---

The reason we need this is because `terser` that chromium used is too
old and it doesn’t support [Private fields and methods](terser/terser#913)
so that is why we will see
[this](https://bravesoftware.slack.com/archives/C7VLGSR55/p1675990758314239)
on Android release build due to `_strip_resource_files = is_android &&
is_official_build` in `//tools/grit/grit_rule.gni`
darkdh added a commit to brave/brave-core that referenced this pull request Feb 13, 2023
https://chromium-review.googlesource.com/c/chromium/src/+/4218203

WebUI: Roll Terser to v5.16.2

The existing version of Terser is 2 years old (5.3.3) and does not
support features like static initialization blocks.

No size changes were observed in the Print Preview and Settings
.rollup.js files. polymer_bundled.min.js was observed to slightly
decrease in size (~30 bytes) when regenerated with reproduce.sh.

Bug: 1412524
Change-Id: I0f5d58ac18f3a50cfedc095b278445122d33c5c4
Reviewed-on:
https://chromium-review.googlesource.com/c/chromium/src/+/4218203
Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org>
Commit-Queue: Rebekah Potter <rbpotter@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1100754}

In addition, we need
https://chromium-review.googlesource.com/c/chromium/src/+/4160349 and
https://chromium-review.googlesource.com/c/chromium/src/+/4214416,
otherwise we won't have a matching node_modules.tar.gz.sha1

---

The reason we need this is because `terser` that chromium used is too
old and it doesn’t support [Private fields and methods](terser/terser#913)
so that is why we will see
[this](https://bravesoftware.slack.com/archives/C7VLGSR55/p1675990758314239)
on Android release build due to `_strip_resource_files = is_android &&
is_official_build` in `//tools/grit/grit_rule.gni`
darkdh added a commit to brave/brave-core that referenced this pull request Feb 13, 2023
https://chromium-review.googlesource.com/c/chromium/src/+/4218203

WebUI: Roll Terser to v5.16.2

The existing version of Terser is 2 years old (5.3.3) and does not
support features like static initialization blocks.

No size changes were observed in the Print Preview and Settings
.rollup.js files. polymer_bundled.min.js was observed to slightly
decrease in size (~30 bytes) when regenerated with reproduce.sh.

Bug: 1412524
Change-Id: I0f5d58ac18f3a50cfedc095b278445122d33c5c4
Reviewed-on:
https://chromium-review.googlesource.com/c/chromium/src/+/4218203
Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org>
Commit-Queue: Rebekah Potter <rbpotter@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1100754}

In addition, we need
https://chromium-review.googlesource.com/c/chromium/src/+/4160349 and
https://chromium-review.googlesource.com/c/chromium/src/+/4214416,
otherwise we won't have a matching node_modules.tar.gz.sha1

---

The reason we need this is because `terser` that chromium used is too
old and it doesn’t support [Private fields and methods](terser/terser#913)
so that is why we will see
[this](https://bravesoftware.slack.com/archives/C7VLGSR55/p1675990758314239)
on Android release build due to `_strip_resource_files = is_android &&
is_official_build` in `//tools/grit/grit_rule.gni`
darkdh added a commit to brave/brave-core that referenced this pull request Feb 13, 2023
…ooglesource.com/c/chromium/src/+/4218203)

in a less invasive way by pointing it to brave local terser. Otherwise
we will have to also cherry-pick
https://chromium-review.googlesource.com/c/chromium/src/+/4160349 and
https://chromium-review.googlesource.com/c/chromium/src/+/4214416 otherwise
we won't have a matching node_modules.tar.gz.sha1
---

The reason we need this is because `terser` that chromium used is too
old and it doesn’t support [Private fields and
methods](terser/terser#913)
so that is why we will see
[this](https://bravesoftware.slack.com/archives/C7VLGSR55/p1675990758314239)
on Android release build due to `_strip_resource_files = is_android &&
is_official_build` in `//tools/grit/grit_rule.gni`
mihaiplesa pushed a commit to brave/brave-core that referenced this pull request Feb 14, 2023
* Revert "Revert "On demand loading wallet-standard" (#17131)"

This reverts commit 1e3bae9.

* Cherry-pick [WebUI: Roll Terser to v5.16.2](https://chromium-review.googlesource.com/c/chromium/src/+/4218203)
in a less invasive way by pointing it to brave local terser. Otherwise
we will have to also cherry-pick
https://chromium-review.googlesource.com/c/chromium/src/+/4160349 and
https://chromium-review.googlesource.com/c/chromium/src/+/4214416 otherwise
we won't have a matching node_modules.tar.gz.sha1
---

The reason we need this is because `terser` that chromium used is too
old and it doesn’t support [Private fields and
methods](terser/terser#913)
so that is why we will see
[this](https://bravesoftware.slack.com/archives/C7VLGSR55/p1675990758314239)
on Android release build due to `_strip_resource_files = is_android &&
is_official_build` in `//tools/grit/grit_rule.gni`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ERROR: Unexpected character '#' – private class fields
4 participants