tvcutsem / harmony-reflect

ES5 shim for ES6 Reflect and Proxy objects
http://www.ecma-international.org/ecma-262/6.0/#sec-reflection
Other
478 stars 48 forks source link

Hack assertThrow to work across platforms #2

Closed polotek closed 12 years ago

polotek commented 12 years ago

The assertThrow function does an exact match on error messages. But other js engines don't use the same error message text. The easiest way to hack around this was to use a loose regex to compare the messages.