Description[bindings] Bindings should only support the prescribed types for constants.
Specification at https://heycam.github.io/webidl/#idl-constants mentions the constants
should be defined as:
const type identifier = value;
whereas the |type| is mentioned as:
The type of a constant (matching ConstType) must not be any type other than a primitive
type or a nullable primitive type
And string literals are not treated as primitive types. Hence we should remove the support
for having a constant like:
const DOMString hello = "world";
BUG=469961
R=haraken@chromium.org
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201278
Patch Set 1 #Messages
Total messages: 9 (4 generated)
|