forked from mirrors/gecko-dev
		
	https://dom.spec.whatwg.org/#dom-htmlcollection-item Source-Repo: https://github.com/servo/servo Source-Revision: 7192495e1a5ae24b62c61b718df38ee2f8803e03
		
			
				
	
	
		
			25 lines
		
	
	
	
		
			1.3 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
	
		
			1.3 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
--- WebIDL.py
 | 
						|
+++ WebIDL.py
 | 
						|
@@ -1069,6 +1069,12 @@ class IDLInterface(IDLObjectWithScope, IDLExposureMixins):
 | 
						|
 | 
						|
             specialMembersSeen[memberType] = member
 | 
						|
 | 
						|
+        if (self.getExtendedAttribute("LegacyUnenumerableNamedProperties") and
 | 
						|
+            "named getters" not in specialMembersSeen):
 | 
						|
+            raise WebIDLError("[LegacyUnenumerableNamedProperties] used on an interface "
 | 
						|
+                              "without a named getter",
 | 
						|
+                              [self.location])
 | 
						|
+
 | 
						|
         if self._isOnGlobalProtoChain:
 | 
						|
             # Make sure we have no named setters, creators, or deleters
 | 
						|
             for memberType in ["setter", "creator", "deleter"]:
 | 
						|
@@ -1417,7 +1423,8 @@ class IDLInterface(IDLObjectWithScope, IDLExposureMixins):
 | 
						|
                   identifier == "UnsafeInPrerendering" or
 | 
						|
                   identifier == "LegacyEventInit" or
 | 
						|
                   identifier == "ProbablyShortLivingObject" or
 | 
						|
-                  identifier == "Abstract"):
 | 
						|
+                  identifier == "Abstract" or
 | 
						|
+                  identifier == "LegacyUnenumerableNamedProperties"):
 | 
						|
                 # Known extended attributes that do not take values
 | 
						|
                 if not attr.noArguments():
 | 
						|
                     raise WebIDLError("[%s] must take no arguments" % identifier,
 |