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

Reply via email to