Support Namespace const in webidl (#30492)

* Add TestNS with const

* Implement namespace const in codegen
This commit is contained in:
Samson 2023-10-04 13:29:54 +02:00 committed by GitHub
parent a31e2ea576
commit 8436002383
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 74 additions and 8 deletions

View file

@ -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;
};