mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Fix up indentation of the generated code for event handler return values. No bug.
This commit is contained in:
parent
ac64b1f3d1
commit
864866eb21
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user