paulmillr / es6-shim

ECMAScript 6 compatibility shims for legacy JS engines
http://paulmillr.com
MIT License
3.11k stars 387 forks source link

Uncaught TypeError: RegExp.prototype.global getter called on non-RegExp object #406

Closed b-rucel closed 8 years ago

b-rucel commented 8 years ago

screen shot 2016-02-09 at 2 28 56 am

ljharb commented 8 years ago

@b-rucel are you perhaps using an older version of es6-shim, and Chrome Canary?

If you upgrade to the latest version of es6-shim this problem should go away. Note that when using Canary, you should expect lots of things to break often.

b-rucel commented 8 years ago

Yeah I should have checked my es6-shim version first. It was one of those late night mistakes, thanks for following up quickly.

ljharb commented 8 years ago

np, thanks for the report!