Unreachable NotSupportedErrors in the Budget API implementation |
||
Issue descriptionhttps://cs.chromium.org/chromium/src/third_party/WebKit/Source/modules/budget/BudgetService.cpp?l=68 https://cs.chromium.org/chromium/src/third_party/WebKit/Source/modules/budget/BudgetService.cpp?l=132 The IDL defines the `OperationType` enumeration. The generated code automatically verifies that the developer-provided string is included in the enumeration. If it's not, a TypeError will be thrown: https://cs.chromium.org/chromium/src/out/Debug/gen/blink/bindings/modules/v8/V8BudgetService.cpp?l=78 That means that we'll only end up in the referred to branches when *we* made a programming error by amending the `OperationType` enum, but not the corresponding type in the mojom file. As such, it should be a DCHECK.
,
Dec 12 2016
|
||
►
Sign in to add a comment |
||
Comment 1 by bugdroid1@chromium.org
, Dec 12 2016