Skip to content

Releases: domenic/test262-to-mjsunit

1.1.1

Choose a tag to compare

@domenic domenic released this 09 Dec 22:06

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

Choose a tag to compare

@domenic domenic released this 04 Dec 22:04

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.

1.0.2

Choose a tag to compare

@domenic domenic released this 04 Dec 21:05

Made the header comments above each test wrap to 80 columns, to fit the V8 style guide.

1.0.1

Choose a tag to compare

@domenic domenic released this 04 Dec 20:40

Now only outputs a single newline at the end of the file, and not three. This allows the generated files to pass V8 the presubmit checks.

1.0.0

Choose a tag to compare

@domenic domenic released this 04 Dec 20:40

Initial release! Supports a decent set of functionality, but by no means everything possible. More will probably be added over time!