mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:48:11 +00:00
Utilities: Make the js REPL autocomplete correctly handle new Ident
Previously, `new` was being recognised as an identifier, which was preventing this from working.
This commit is contained in:
parent
d83c672926
commit
71234b3716
1 changed files with 1 additions and 1 deletions
|
@ -1030,7 +1030,7 @@ int main(int argc, char** argv)
|
|||
case CompleteProperty:
|
||||
// something came after the property access, reset to initial
|
||||
case Initial:
|
||||
if (js_token.is_identifier_name()) {
|
||||
if (js_token.type() == JS::TokenType::Identifier) {
|
||||
// ...<name>...
|
||||
mode = CompleteVariable;
|
||||
variable_name = js_token.value();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue