Skip to content
This repository was archived by the owner on Jun 6, 2023. It is now read-only.
This repository was archived by the owner on Jun 6, 2023. It is now read-only.

Require callbacks not being fired #15

Description

@BenSayers

I believe I have found a bug and would like to clarify. Around line 100 of testr.js you will find:

var thisRequire = origRequire(cfg, cfg.deps, function() {
    cfg.callback && cfg.callback();
    if(++requireLoadedCount === requireCount) {
        // all requires have finished loading, execute testr callback
        complete();
    }
}

This is part of the replacement require function. cfg.callback is invoked if it is defined, however cfg.callback is never set to a value. I believe the code should be invoking the callback passed to the require function as when I call require with testr loaded on the page none of the require callback methods are invoked.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions