Releases: domenic/test262-to-mjsunit
Release list
1.1.1
Fixed the processing of Test262Errors to prepend function Test262Error() {} instead of translating them to MjsUnitAssertionError instances. The dummy Test262Error constructor can then be used in assert.throws checks that get converted into assertThrows. As part of this, since the dummy constructor takes no arguments, removed the arguments from the construction site as well.
This fixed a problem where if you used e.g. $ERROR() and throw new Test262Error() in your test262 tests, both would be converted to throwing MjsUnitAssertionError instances, making any assertThrows inaccurate since it would match both.
1.1.0
Fixed a couple more style issues per review comments:
- Each test's header is now a simple single-line comment, with no extra
//s before and after. - Tests are now separated by three newlines, instead of two.
Added the ability to translate from test262's onlyStrict flag to a "use strict"; pragma inside the mjsunit test.