mirror of
https://github.com/servo/servo.git
synced 2025-08-08 23:15:33 +01:00
Support Namespace const in webidl (#30492)
* Add TestNS with const * Implement namespace const in codegen
This commit is contained in:
parent
a31e2ea576
commit
8436002383
9 changed files with 74 additions and 8 deletions
|
@ -599,3 +599,9 @@ partial interface TestBinding {
|
|||
[Pref="dom.testable_crash.enabled"]
|
||||
undefined crashHard();
|
||||
};
|
||||
|
||||
[Exposed=(Window,Worker), Pref="dom.testbinding.enabled"]
|
||||
namespace TestNS {
|
||||
const unsigned long ONE = 1;
|
||||
const unsigned long TWO = 0x2;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue