RenderJS Home RenderJS

    Always check the returned value of a method

    • Last Update:2020-06-05
    • Version:001
    • Language:en

    Always check the returned value of a method

    As all renderJS method calls are asynchronous, exceptions are only propagated to the promise rejection handlers.

    Good example:

    return my_gadget.callMethod();

    Bad example:

    my_gadget.callMethod();