fork-openpgpjs/test
Daniel Huigens d91b064e14 Optimize util.removeTrailingSpaces (#848)
Backtracking regexes have pathological worst-case performance when
a long line contains a large amount of whitespace not followed by
a newline, since the regex engine will attempt to match the regex
at each whitespace character, read ahead to the non-whitespace non-
newline, declare no match, and try again at the next whitespace.

E.g. try running

    util.removeTrailingSpaces(new Array(1e6).join(' ') + 'a').length

which would hang V8.
2019-01-27 00:22:47 +00:00
..
crypto ECDHE tests (#846) 2019-01-27 00:19:36 +00:00
general Optimize util.removeTrailingSpaces (#848) 2019-01-27 00:22:47 +00:00
security Add CAST5 to always-allowed algorithms 2018-12-22 00:00:47 -05:00
worker Don't run AsyncProxy tests in browsers that don't fully support workers 2019-01-15 20:16:59 +01:00
unittests.html fix obsolete browser tests, add some polyfills 2018-02-05 22:17:41 -08:00
unittests.js Lower S2K iteration count parameter in tests 2018-11-05 18:00:20 +01:00