vimpr/vimperator-plugins

feedsomekeys error when loading (Win10, FF Nightly 43.0a1, vimperator fixup-nightly branch)

gregist opened this issue · 4 comments

The status line is,

sourcing file failed: ***\feedSomeKeys_3.js:319: SyntaxError: expected expression, got keyword 'let'

dfeng commented

If I'm not mistaken, Firefox has deprecated let blocks (see here).

I basically expanded each let (foo) (bar) into let foo; bar. e.g.

  function or (list, func) {
    let [head,] = list;
    return(list.length && func(head) || or(list.slice(1), func));
  }

I needed it for lines 319 and ~601. Now no more warnings :) As I'm not too familiar with let blocks, I'll defer to someone else to actually do the patch.

same here, but thanks to @dfeng , it's fixed manually

On Firefox 41.0.2 for Linux, feedSomeKeys3.js from 74a5a87 seems to produce no errors, could you check it?

feedsomekeys.js error when it is loading, points: "253: SyntaxError: illegal character", feedsomekeys running on vimperator.v.3.1.2 / firefox.v.45.0.2, please fix it, thanks so much.