mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Fix WebIDL.py patches
This commit is contained in:
parent
8e300ca5bd
commit
6f563830d1
3 changed files with 20 additions and 26 deletions
|
@ -1,12 +1,10 @@
|
|||
--- WebIDL.py
|
||||
+++ WebIDL.py
|
||||
@@ -1883,7 +1883,8 @@ class IDLInterface(IDLInterfaceOrNamespace):
|
||||
identifier == "LegacyUnenumerableNamedProperties" or
|
||||
identifier == "RunConstructorInCallerCompartment" or
|
||||
identifier == "WantsEventListenerHooks" or
|
||||
- identifier == "Serializable"):
|
||||
+ identifier == "Serializable" or
|
||||
+ identifier == "Abstract"):
|
||||
@@ -1987,6 +1987,7 @@ class IDLInterface(IDLInterfaceOrNamespace):
|
||||
or identifier == "RunConstructorInCallerCompartment"
|
||||
or identifier == "WantsEventListenerHooks"
|
||||
or identifier == "Serializable"
|
||||
+ or identifier == "Abstract"
|
||||
):
|
||||
# Known extended attributes that do not take values
|
||||
if not attr.noArguments():
|
||||
raise WebIDLError("[%s] must take no arguments" % identifier,
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
--- WebIDL.py
|
||||
+++ WebIDL.py
|
||||
@@ -7382,7 +7382,8 @@ class Parser(Tokenizer):
|
||||
self.parser = yacc.yacc(module=self,
|
||||
outputdir=outputdir,
|
||||
tabmodule='webidlyacc',
|
||||
- errorlog=logger
|
||||
+ errorlog=logger,
|
||||
+ debug=False
|
||||
# Pickling the grammar is a speedup in
|
||||
# some cases (older Python?) but a
|
||||
# significant slowdown in others.
|
||||
@@ -8827,6 +8827,7 @@ class Parser(Tokenizer):
|
||||
module=self,
|
||||
outputdir=outputdir,
|
||||
errorlog=logger,
|
||||
+ debug=False,
|
||||
write_tables=False,
|
||||
# Pickling the grammar is a speedup in
|
||||
# some cases (older Python?) but a
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
--- WebIDL.py
|
||||
+++ WebIDL.py
|
||||
@@ -1884,7 +1884,8 @@ class IDLInterface(IDLInterfaceOrNamespace):
|
||||
identifier == "RunConstructorInCallerCompartment" or
|
||||
identifier == "WantsEventListenerHooks" or
|
||||
identifier == "Serializable" or
|
||||
- identifier == "Abstract"):
|
||||
+ identifier == "Abstract" or
|
||||
+ identifier == "Inline"):
|
||||
@@ -1988,6 +1988,7 @@ class IDLInterface(IDLInterfaceOrNamespace):
|
||||
or identifier == "WantsEventListenerHooks"
|
||||
or identifier == "Serializable"
|
||||
or identifier == "Abstract"
|
||||
+ or identifier == "Inline"
|
||||
):
|
||||
# Known extended attributes that do not take values
|
||||
if not attr.noArguments():
|
||||
raise WebIDLError("[%s] must take no arguments" % identifier,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue