Skip to content

Pass name when calling define() #102

@avalez

Description

@avalez

Currently anonymous define() in stacktrace.js:line 14 (see below) causes problems:
a) with require.js: http://requirejs.org/docs/errors.html#mismatch)
b) with almond.js: Uncaught TypeError: Cannot read property 'splice' of undefined almond.js:413

(function(global, factory) {
if (typeof exports === 'object') {
// Node
module.exports = factory();
} else if (typeof define === 'function' && define.amd) {
// AMD
define(factory);

Could you please pass a name as first argument when calling define()?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions