5 karma · joined Apr 16, 2014 (12y ago) · 6 submissions
1.
A handy tool to convert timestamps and ISO strings(tttimestamps.com ↗)
1 points · by josdejong · 9y ago · discuss
comment 9y ago · link · parent
A first approach was to try to put security checks right before executing any function. That didn't work out since the parser doesn't have control over all function executions: for example not over the ones invoked by Array.forEach and Array.map. A second approach was to blacklist the "constructor" property since all issues did go via constructor and managed to call Function that way. That wasn't enough either. Current approach is to guard the values of symbols and properties (the places where unknown stuff can come in) and test whether there value equals Function. To be continued I think...
comment 10y ago · link · parent
comment 11y ago · link · parent
comment 12y ago · link · parent
I've been developing this library for a couple of years now, and since a couple of months working on it together with another colleague.
Guys feel free to share ideas and code to improve the library and make it even better, check it out on Github.