Skip to content
Snippets Groups Projects
  1. Sep 14, 2017
    • Daniele Di Sarli's avatar
      fix eslint · 2ad36782
      Daniele Di Sarli authored
      2ad36782
    • Daniel Di Sarli's avatar
      Fix crash with minified functions · 70ce2ba0
      Daniel Di Sarli authored
      This is an example of a valid minified function that doesn't work with the regex in toFunction:
      
          function profileModelWorkerRunner(){var Moment=eval("require")("moment-timezone");self.onmessage=function(event){var profileModelClass=eval("require")(event.data.profileModelPath).default,profileModelWorker=new profileModelClass(Moment,event.data.timezone),params=event.data.params;var result=profileModelWorker.check(params);postMessage(result)}}
      
      I've replaced that code with an eval, which is safer than parsing JS code (which is not a context-free grammar) with regular expressions.
      70ce2ba0
  2. Mar 05, 2017
  3. Jan 05, 2017
  4. Oct 03, 2016
  5. Jun 15, 2016
  6. Oct 14, 2015
  7. Sep 30, 2015
  8. Sep 29, 2015
Loading