Bug 186073 - [WSL] "do while" should require a ';' at the end for similarity with C-like languages
Summary: [WSL] "do while" should require a ';' at the end for similarity with C-like l...
Status: RESOLVED MOVED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebGPU (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 176199
  Show dependency treegraph
 
Reported: 2018-05-29 17:01 PDT by Robin Morisset
Modified: 2018-10-13 15:53 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robin Morisset 2018-05-29 17:01:52 PDT
e.g.
int f() {
    int x;
    x = 42;
    do
      x += 3;
    while (false)
    return x;
}
should be refused.
Comment 1 Myles C. Maxfield 2018-08-15 22:56:04 PDT
(In reply to Robin Morisset from comment #0)
> e.g.
> int f() {
>     int x;
>     x = 42;
>     do
>       x += 3;
>     while (false)
>     return x;
> }
> should be refused.

What's the reason for this? Why not make it optional?
Comment 2 Myles C. Maxfield 2018-10-13 15:53:48 PDT
Migrated to https://github.com/gpuweb/WHLSL/issues/118