It's probably implementation issue and you should report it to
SpiderMonkey/V8/Chacra team.

On 10 Nov 2016 2:59 p.m., "Angel Scull" <[email protected]> wrote:

> Hello,
>
> I’ve tried this code and seems that there is some weird type checking
> somewhere that causes this exception.
>
> TypeError: Method RegExp.prototype.exec called on incompatible receiver
> [object Object]
>
>
> let pattern = /^[a-zA-Z0-9\-\._]+@[a-zA-Z0-9\-_]+(\.?[a-zA-Z0-9\-_]*)\.[
> a-zA-Z]{2,3}$/;
>
> let patternProxy = new Proxy(pattern,{});
>
> patternProxy.test('[email protected]')
> _______________________________________________
> es-discuss mailing list
> [email protected]
> https://mail.mozilla.org/listinfo/es-discuss
>
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to