DevTools support for ergonomic Brand Checks
Categories
(DevTools :: Console, task)
Tracking
(firefox90 fixed)
Tracking | Status | |
---|---|---|
firefox90 | --- | fixed |
People
(Reporter: mgaudet, Assigned: nchevobbe)
References
Details
Attachments
(1 file)
We've got a complete implementation of ergonomic brand checks:
- https://tc39.es/proposal-private-fields-in-in/
- https://github.com/tc39/proposal-private-fields-in-in
DevTools may need to do some work to support pretty printing programs that include #x in y
expressions
Reporter | ||
Updated•3 years ago
|
Assignee | ||
Comment 1•3 years ago
|
||
Thanks for the heads up Matthew.
I did a quick test, flipping javascript.options.experimental.ergonomic_brand_checks
on
With patch for Bug 1710417, pretty printing seems to be fine.
But this new syntax does break some features in debugger (outline view, inline preview, variable tooltip).
We do get an error in the terminal:
new SyntaxError("This experimental syntax requires enabling the parser plugin: 'privateIn' (9:19)", "resource://devtools/client/debugger/dist/parser-worker.js", 17131))
In order to fix this, we should add this babel plugin: https://babeljs.io/docs/en/babel-plugin-proposal-private-property-in-object
We can probably do this right now, without waiting for Bug 1710510 as the impacts seem pretty low, and we could have a test with the pref turned on
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 2•3 years ago
|
||
Since ergonomic brand check were enabled in Bug 1710510,
babel needs support to parse script using this new syntax.
A test case is added, and the test was failing without the
new plugin.
Comment 4•3 years ago
|
||
bugherder |
Description
•