In JavaScript, classes are expressions, so they can appear e.g. in
argument lists.
var C = foo(class { bar() { return 1; } };
Differential D29635
clang-format: [JS] handle parenthesized class expressions. mprobst on Feb 7 2017, 5:49 AM. Authored by
Details In JavaScript, classes are expressions, so they can appear e.g. in var C = foo(class { bar() { return 1; } };
Diff Detail
Event Timeline |