web-apps/vendor/requirejs/tests/error/plug.js

12 lines
275 B
JavaScript
Raw Normal View History

2016-03-11 00:48:53 +00:00
define({
load: function (id, require, load, config) {
'use strict';
if (id === 'broken') {
var err = new Error('broken');
err.plugMessage = id;
load.error(err);
} else {
load(id);
}
}
});