Coder Social home page Coder Social logo

setup test262 harness about boa HOT 6 CLOSED

boa-dev avatar boa-dev commented on April 20, 2024
setup test262 harness

from boa.

Comments (6)

Lan2u avatar Lan2u commented on April 20, 2024 3

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

from boa.

Razican avatar Razican commented on April 20, 2024 2

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.

from boa.

jasonwilliams avatar jasonwilliams commented on April 20, 2024

@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

from boa.

jasonwilliams avatar jasonwilliams commented on April 20, 2024

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

from boa.

Lan2u avatar Lan2u commented on April 20, 2024

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)?

from boa.

HalidOdat avatar HalidOdat commented on April 20, 2024

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

from boa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.