Bug 803306. Calling a named creator should not define an expando. r=peterv

This commit is contained in:
Boris Zbarsky 2012-11-05 11:58:03 -05:00
parent 42cdade779
commit aaed3ec0e2

View File

@ -5271,6 +5271,7 @@ class CGDOMJSProxyHandler_defineProperty(ClassMethod):
"\n" +
" %s* self = UnwrapProxy(proxy);\n" +
CGIndenter(CGProxyNamedSetter(self.descriptor)).define() + "\n" +
" return true;\n" +
"}\n") % (self.descriptor.nativeType)
elif self.descriptor.operations['NamedGetter']:
set += ("if (JSID_IS_STRING(id)) {\n" +