jskinner / DefaultPackages

Old bug tracker for Sublime Text's "Default Packages", e.g. bad syntax highlighting
http://web.archive.org/web/20150524043750/https://www.sublimetext.com/forum/viewtopic.php?f=2&t=12095
26 stars 2 forks source link

Javascript: "FunctionDeclaration" error when editing function's return block #166

Closed rbarillec closed 8 years ago

rbarillec commented 8 years ago

Sublime Text v. 2.0.2., build 2221 Mac OSX 10.9.5

How to reproduce:

function foo() {}
function foo(){
   return {}
}
function foo(){
   return {
      a
   }
}

The following exception is thrown:

TypeError: Object # has no method 'FunctionDeclaration'

screen shot 2015-12-24 at 10 39 41

Not sure whether this is an issue with the syntax highlighter or a plugin of mine. If I can provide any more information, please let me know what and where to find it.

Cheers, Remi

log.txt

rbarillec commented 8 years ago

OK, the issue goes away when I uninstall the Tern package. I'll report it there.