`using` keyword isn't displayed in console autocomplete
Categories
(DevTools :: Console, defect, P3)
Tracking
(firefox142 fixed)
Tracking | Status | |
---|---|---|
firefox142 | --- | fixed |
People
(Reporter: nchevobbe, Assigned: nchevobbe)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
- Build with the
--enable-explicit-resource-management
options enabled in mozconfig, and then turn onjavascript.options.experimental.explicit_resource_management
- In the console, type
us
-> using
should be in the list, but it's not
Assignee | ||
Comment 1•10 months ago
|
||
The list of keywords we display in the autocomplete is generated from https://searchfox.org/mozilla-release/rev/31c15d6d5d93f356ba1e880d406d88a13fdc9505/devtools/shared/webconsole/GenerateReservedWordsJS.py , which reads https://searchfox.org/mozilla-release/rev/31c15d6d5d93f356ba1e880d406d88a13fdc9505/js/src/frontend/ReservedWords.h
using
is conditionnaly added in here, and our script don't handle this: https://searchfox.org/mozilla-release/rev/31c15d6d5d93f356ba1e880d406d88a13fdc9505/js/src/frontend/ReservedWords.h#41
IF_EXPLICIT_RESOURCE_MANAGEMENT(MACRO(using, using_, TokenKind::Using)) \
not sure we should do more here, this will probably be fixed when explicit resource management is enabled by default
Assignee | ||
Updated•10 months ago
|
Assignee | ||
Comment 2•3 months ago
|
||
This is taking inspiration from GenerateReservedWords.py.
Updated•3 months ago
|
Assignee | ||
Comment 3•3 months ago
|
||
Updated•3 months ago
|
https://hg.mozilla.org/mozilla-central/rev/7f5678abbcac
https://hg.mozilla.org/mozilla-central/rev/285b6f64fd56
Updated•2 months ago
|
Description
•