Giter VIP home page Giter VIP logo

Comments (3)

fatso83 avatar fatso83 commented on August 24, 2024 1

@ahmed1hsn You are correct in pointing this out! This description is both wrong and it actually made me aware of a bug inside of Sinon. I had a look at the error message that was originally mentioned in #2530 to see what was really going on and found that it does a typeof wrappedMethod, and that will always be undefined as nothing has set that variable yet.

Skjermbilde 2023-08-13 kl  23 08 40

Additionally, as you point out, if something has a getter, it is defined. I must have been a bit sleep deprived when writing this initially. Adding an actual reproduction case (as I could not do that in 2530) is indeed the first step 😄 And the this issue needs updating.

from sinon.

fatso83 avatar fatso83 commented on August 24, 2024 1

This issue does not make sense as it is, being based on an issue we could not reproduce and having some faulty assumptions.

from sinon.

ahmed1hsn avatar ahmed1hsn commented on August 24, 2024

@fatso83 how we can reproduce this issue? and alternatively, how can we find out that property is getter or setter if it's undefined at first place?

from sinon.

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.