WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
243645
Wrong error location with 'switch(value/'
https://bugs.webkit.org/show_bug.cgi?id=243645
Summary
Wrong error location with 'switch(value/'
845043157
Reported
2022-08-07 20:04:18 PDT
run the program: switch(value/{ case 1: print(1); } Actual results: SyntaxError:Unexpected number '1'.Exceptd a ':' following the property name 'case'. Expected results: Excepted ')' to end a subject of a 'switch' The error message told me 'case 1' is wrong while the truth is that I mistakenly entered ‘switch(value)’ as ‘switch(value/’. It makes it difficult for me to correct this error.I think the error location should in 'switch(value/' rather than 'case 1:' and it should tell me excepted ')' rather than excepted a ':'.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2022-08-14 20:05:16 PDT
<
rdar://problem/98651685
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug