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. May 04, 2017
  3. May 03, 2017
  4. May 02, 2017
  5. Apr 25, 2017
  6. Apr 20, 2017
  7. Apr 19, 2017
  8. Apr 10, 2017
  9. Mar 13, 2017
  10. Mar 05, 2017
  11. Jan 05, 2017
  12. Oct 03, 2016
  13. Aug 05, 2016
  14. Jun 15, 2016
  15. Oct 14, 2015
  16. Sep 30, 2015
Loading