Giter Club home page Giter Club logo

Comments (6)

domenic avatar domenic commented on May 18, 2024

This seems overcomplicated. I would just split out tests that use proxies into a separate file, e.g. Array.prototype.contains-proxies-this-arg or something.

from test262.

bterlson avatar bterlson commented on May 18, 2024

Sure, but then that test fails and it's up to the person running the test to know that it's an expected failure in a host without proxies. Imagine testing a polyfill in an ES5 implementation - it would be nice to have the proxy integration tests automatically filtered out.

I agree, though, that this isn't super critical, but it would be nice to have IMO :)

from test262.

smikes avatar smikes commented on May 18, 2024

Having an es6 feature tag on the test that says "Proxy" would be enough to tell us to skip that test if the host doesn't have proxies. 

Is that enough to address both the prerequisite and the interaction issue? 

Annotate a test with the es6 features and abstract operations it touches. That's enough to get us an idea of coverage/lack of and to rule out tests that hit uncovered operations. 

es6: [Array#find, IsCallable, arrowfunctions]

On Mon, Oct 27, 2014 at 4:56 PM, Brian Terlson [email protected]
wrote:

Sure, but then that test fails and it's up to the person running the test to know that it's an expected failure in a host without proxies. Imagine testing a polyfill in an ES5 implementation - it would be nice to have the proxy integration tests automatically filtered out.

I agree, though, that this isn't super critical, but it would be nice to have IMO :)

Reply to this email directly or view it on GitHub:
#111 (comment)

from test262.

bterlson avatar bterlson commented on May 18, 2024

Is that enough to address both the prerequisite and the interaction issue?

It's not enough I don't think. You still need some way of determining if the feature is present, aka a mapping of "Proxy" to return typeof Proxy === 'function'.

from test262.

smikes avatar smikes commented on May 18, 2024

It's not enough I don't think. You still need some way of determining if the feature is present, aka a mapping of "Proxy" to return typeof Proxy === 'function'.

Oh, I thought we were going to do that manually. So if I'm testing v8 today I would have some sort of features.json file with Proxy: false.

Even so, whether it's manual or automatic, tagging a test as features: [Proxy] is a good start in being able to filter out these cross-es6-feature dependencies

from test262.

leobalter avatar leobalter commented on May 18, 2024

We ended up using the features tag, which is not really consumed, but at this point I think it's too late to fix unless we have a new plan. Closing it for now.

from test262.

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.