In JavaScript, object literals can contain methods:
var x = { a() { return 1; }, };
Previously, clang-format always parsed nested {} inside a braced list as
further braced lists. Special case this logic for JavaScript to try
parsing as a braced list, but fall back to parsing as a child block.
nit: remove braces ;)