Closed Bug 1575663 Opened 5 years ago Closed 5 years ago

Enum value "2d-array" isn't parsed correctly

Categories

(Core :: DOM: Bindings (WebIDL), defect, P1)

defect

Tracking

()

RESOLVED FIXED
mozilla71
Tracking Status
firefox71 --- fixed

People

(Reporter: kvark, Assigned: kvark)

References

Details

Attachments

(1 file)

Our binding generator produces the _2d-array variant from it, which is obviously wrong. It should be _2d_array

Exact IDL:

enum GPUTextureViewDimension {
    "1d",
    "2d",
    "2d-array",
    "cube",
    "cube-array",
    "3d"
};

Exact output:

enum class GPUTextureViewDimension : uint8_t {
  _1d,
  _2d,
  _2d-array,
  Cube,
  Cube_array,
  _3d,
  EndGuard_
};

Triager: please assign a reviewer for my PR

Priority: -- → P1
Pushed by dmalyshau@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/abd262d462b0
Improve WebIDL bindgen of enum variants starting with a digit r=bzbarsky
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla71
Assignee: nobody → dmalyshau
Blocks: 1581710
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: