Git Product home page Git Product logo

Comments (4)

kyren avatar kyren commented on August 19, 2024

Oh, ugh, that's a very easy fix, it's supposed to be using "stack_err_guard" not "stack_guard". That's what I get for incomplete tests.

Edit: Ugh, so embarassing, thank you for this bug report though.

from rlua.

kyren avatar kyren commented on August 19, 2024

Okay, that should be fixed in 7231e95. Like I said the fix is easy, but the implication is troubling, because I have now at least messed up stack_guard vs stack_err_guard in two places and not caught it.

I checked every other place in the code that uses stack_guard for unexpectedly returning Err and didn't see anything, so hopefully that's it.

Maybe I should just get rid of stack_guard? Maybe I should just write tests where a convertible type fails and call every single method with that type?

from rlua.

kyren avatar kyren commented on August 19, 2024

What happened was I had originally written get_user_value / set_user_value to just accept / return Value, but then realized that's stupid and changed them to accept ToLua / FromLua instead, but forgot to change the stack_guard to a stack_err_guard.

from rlua.

psychon avatar psychon commented on August 19, 2024

Thanks for the fix and really no need to explain yourself :-)

from rlua.

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.