logoalt Hacker News

g947otoday at 12:44 PM1 replyview on HN

> Sucrose read the code without executing it by using Function.toString() then perform our own custom pattern-matching to extract useful information about what parts of the request are actually needed by the route handler.

Hmm.


Replies

pygy_today at 1:16 PM

Yup, this is a one-time, startup operation, using a proper parser would make it more robust at no runtime cost.