Boa: setup test262 harness

Created on 22 Mar 2019  路  6Comments  路  Source: boa-dev/boa

It would be good to start running these https://github.com/tc39/test262/tree/master/test/language

Project

https://github.com/jasonwilliams/boa/projects/2

Tracking of blocking issues:

  • [x] Exception handling (#377)
  • [x] Function expressions (#266)
  • [x] this keyword (#264)
  • [x] Hoisting variables (#376)
  • [x] Goal symbols when lexing (#294)
help wanted blocked test

Most helpful comment

Now that we have goal symbol support (in the form of #486) is it worth giving this a go - do we have any progress already in terms of running test262 on boa (like a rust test runner)?

No progress yet in terms of setting up the harness of the tests

Ok cool, I can potentially start looking at this

All 6 comments

@vitkarpov if this is too much we could start of by doing what rapidus does for now and start with a few js files to test from https://github.com/maekawatoshiki/rapidus/tree/new-gen/test

Their test setup looks like this:
https://github.com/maekawatoshiki/rapidus/blob/3259515b4e3d48d53927bd3d065f6d1eb3b489e3/src/test.rs

Test Locations
https://github.com/tc39/test262/tree/master/test/language

Interpreting Test262 Tests

A good start could be to have a test file, which pulls in some of the pre-defined bindings before loading a file. Assert would be a start
https://github.com/tc39/test262/blob/master/INTERPRETING.md#test262-defined-bindings

We could test assert.js working then a JS test suite. We could test this by importing multiple js files but using the same executor, it should work.

We may need to bring https://github.com/tc39/test262 in as a submodule

I would like to re-open this. I don't think we are so far away from it, I would say we have to implement the following:

  • Exception handling (#377)
  • Function expressions (#266)
  • this keyword (#264)
  • Hoisting variables (#376)

After that, we can implement an automated process to give stats on what we support, and we can start tackling syntax step by step.

Now that we have goal symbol support (in the form of #486) is it worth giving this a go - do we have any progress already in terms of running test262 on boa (like a rust test runner)?

Now that we have goal symbol support (in the form of #486) is it worth giving this a go - do we have any progress already in terms of running test262 on boa (like a rust test runner)?

No progress yet in terms of setting up the harness of the tests

Now that we have goal symbol support (in the form of #486) is it worth giving this a go - do we have any progress already in terms of running test262 on boa (like a rust test runner)?

No progress yet in terms of setting up the harness of the tests

Ok cool, I can potentially start looking at this

Was this page helpful?
0 / 5 - 0 ratings

Related issues

elasmojs picture elasmojs  路  4Comments

IovoslavIovchev picture IovoslavIovchev  路  4Comments

elasmojs picture elasmojs  路  5Comments

gadget114514 picture gadget114514  路  3Comments

HalidOdat picture HalidOdat  路  3Comments