You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This supports calling libraries which declare properties of objects using reserved words.
This does not support declaring these fields.
`var a = { 'throw': function() {} }` - works
`a.throw()` - works
`var a = { throw: function() {} }` - does not work
Fixesbeautifier#309Fixesbeautifier#351Fixesbeautifier#368Fixesbeautifier#378
I'm using
Q
and some of its methods are reserved words, likecatch
andfinally
.In Q for example you can write:
But this is formatted by js-beautifier in:
Because
catch
is interpreted as a keyword.Is there a way to format this code properly without using the square bracket notation (i.e.
Q($.ajax(...))['catch'](...)
)?Thanks!
The text was updated successfully, but these errors were encountered: