Bug 851891. Make stringifier attributes fail to codegen. r=khuey

This commit is contained in:
Boris Zbarsky 2014-01-14 21:46:44 -05:00
Родитель 05f20089d2
Коммит 9562a762e6
2 изменённых файлов: 7 добавлений и 1 удалений

Просмотреть файл

@ -8689,6 +8689,10 @@ class CGDescriptor(CGThing):
else:
hasMethod = True
elif m.isAttr():
if m.stringifier:
raise TypeError("Stringifier attributes not supported yet. "
"See bug 824857.\n"
"%s" % m.location);
if m.isStatic():
assert descriptor.interface.hasInterfaceObject
cgThings.append(CGStaticGetter(descriptor, m))

Просмотреть файл

@ -16,7 +16,9 @@
[NoInterfaceObject]
interface URLUtils {
[SetterThrows]
stringifier attribute DOMString href;
// Bug 824857: no support for stringifier attributes yet.
// stringifier attribute DOMString href;
attribute DOMString href;
readonly attribute DOMString origin;
attribute DOMString protocol;