Fix WebIDL.py patches

This commit is contained in:
sagudev 2023-02-19 13:35:58 +01:00
parent 8e300ca5bd
commit 6f563830d1
3 changed files with 20 additions and 26 deletions

View file

@ -1,12 +1,10 @@
--- WebIDL.py --- WebIDL.py
+++ WebIDL.py +++ WebIDL.py
@@ -1883,7 +1883,8 @@ class IDLInterface(IDLInterfaceOrNamespace): @@ -1987,6 +1987,7 @@ class IDLInterface(IDLInterfaceOrNamespace):
identifier == "LegacyUnenumerableNamedProperties" or or identifier == "RunConstructorInCallerCompartment"
identifier == "RunConstructorInCallerCompartment" or or identifier == "WantsEventListenerHooks"
identifier == "WantsEventListenerHooks" or or identifier == "Serializable"
- identifier == "Serializable"): + or identifier == "Abstract"
+ identifier == "Serializable" or ):
+ identifier == "Abstract"):
# Known extended attributes that do not take values # Known extended attributes that do not take values
if not attr.noArguments(): if not attr.noArguments():
raise WebIDLError("[%s] must take no arguments" % identifier,

View file

@ -1,12 +1,10 @@
--- WebIDL.py --- WebIDL.py
+++ WebIDL.py +++ WebIDL.py
@@ -7382,7 +7382,8 @@ class Parser(Tokenizer): @@ -8827,6 +8827,7 @@ class Parser(Tokenizer):
self.parser = yacc.yacc(module=self, module=self,
outputdir=outputdir, outputdir=outputdir,
tabmodule='webidlyacc', errorlog=logger,
- errorlog=logger + debug=False,
+ errorlog=logger, write_tables=False,
+ debug=False # Pickling the grammar is a speedup in
# Pickling the grammar is a speedup in # some cases (older Python?) but a
# some cases (older Python?) but a
# significant slowdown in others.

View file

@ -1,12 +1,10 @@
--- WebIDL.py --- WebIDL.py
+++ WebIDL.py +++ WebIDL.py
@@ -1884,7 +1884,8 @@ class IDLInterface(IDLInterfaceOrNamespace): @@ -1988,6 +1988,7 @@ class IDLInterface(IDLInterfaceOrNamespace):
identifier == "RunConstructorInCallerCompartment" or or identifier == "WantsEventListenerHooks"
identifier == "WantsEventListenerHooks" or or identifier == "Serializable"
identifier == "Serializable" or or identifier == "Abstract"
- identifier == "Abstract"): + or identifier == "Inline"
+ identifier == "Abstract" or ):
+ identifier == "Inline"):
# Known extended attributes that do not take values # Known extended attributes that do not take values
if not attr.noArguments(): if not attr.noArguments():
raise WebIDLError("[%s] must take no arguments" % identifier,