Fix up indentation of the generated code for event handler return values. No bug.

This commit is contained in:
Boris Zbarsky 2012-11-28 02:33:50 -05:00
parent ac64b1f3d1
commit 864866eb21

View File

@ -3264,9 +3264,9 @@ if (!%(resultStr)s) {
wrapCode = (("if (%(result)s) {\n" +
CGIndenter(CGGeneric(setValue(
"JS::ObjectValue(*%(result)s->Callable())", True))).define() +
"JS::ObjectValue(*%(result)s->Callable())", True))).define() + "\n"
"} else {\n" +
setValue("JS::NullValue()") +
CGIndenter(CGGeneric(setValue("JS::NullValue()"))).define() + "\n"
"}") % { "result": result })
return wrapCode, False