Sandboxing and parsing jQuery in 100ms

Peter van der Zee ecma at qfox.nl
Wed Nov 7 13:37:26 PST 2012


On Wed, Nov 7, 2012 at 5:53 PM, gaz Heyes <gazheyes at gmail.com> wrote:
> Hi all
>
> Check this out:
> http://www.thespanner.co.uk/2012/11/07/sandboxing-and-parsing-jquery-in-100ms/

How would you deal with cases like `foo(/)/);` and `foo(5//)/g);` ?
So how would you deal with combinations of regular expressions and
divisions in awkward places? Or are you already using a tokenizer and
hardcoded rules on when to parse for regex/div?

- peter


More information about the es-discuss mailing list