Giter VIP home page Giter VIP logo

Comments (7)

lukeapage avatar lukeapage commented on July 16, 2024

Sorry.. all attempts I've made at a cutdown reproducible have failed, but maybe you can think of something that might help?

from yaku.

ysmood avatar ysmood commented on July 16, 2024

Thanks for your report, I'll look into it.

from yaku.

ysmood avatar ysmood commented on July 16, 2024

Have you read this, maybe it helps :
https://github.com/ysmood/yaku/blob/master/docs/debugHelperComparison.md

from yaku.

lukeapage avatar lukeapage commented on July 16, 2024

Yes, but the problem is an unhandled rejection (or 2 actually for the same promise chain) that I do not expect to see. If switching to throw hadn't solved it I would have investigated more.

from yaku.

ysmood avatar ysmood commented on July 16, 2024
var Promise = Yaku = require("yaku");

var promise = Yaku.reject()

promise.catch(() => {
    return Promise.reject();
}).catch(() => {
});

For me the code above works without any problem. So the question is still how to reproduce your issue.

from yaku.

lukeapage avatar lukeapage commented on July 16, 2024

Yep and I've tried more complicated cases. I think I'll have to experiment/investigate.

I'm wondering if one of the promises on my chain is using the native promise and thats why. I'll add alot of debugging and get back to you.

from yaku.

ysmood avatar ysmood commented on July 16, 2024

In most cases, you just forgot to write a return.

Or you can add a line before everything to wipe out native Promise noise:

var Promise = require("yaku");
// browser
window.Promise = Promise

// node.js
global.Promise = Promise

from yaku.

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.