Remove outdated comment

The described code was removed in 5f1c3c3b8de7b6f450d4a6b005e689c3f04477b0 (2 years ago!)
This commit is contained in:
Nicolò Ribaudo 2017-09-08 12:52:02 +02:00
parent 8cc89e6228
commit ef31a148a6
No known key found for this signature in database
GPG Key ID: D55002D038126843

View File

@ -2,15 +2,6 @@
// @flow
// This is a trick taken from Esprima. It turns out that, on
// non-Chrome browsers, to check whether a string is in a set, a
// predicate containing a big ugly `switch` statement is faster than
// a regular expression, and on Chrome the two are about on par.
// This function uses `eval` (non-lexical) to produce such a
// predicate from a space-separated string of words.
//
// It starts by sorting the words by length.
function makePredicate(words: string): (str: string) => boolean {
const wordsArr = words.split(" ");
return function(str) {