DocumentServer/OfficeWeb/vendor/requirejs/tests/error/plug.js
2015-04-28 17:59:00 +03:00

12 lines
275 B
JavaScript

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);
}
}
});