Skip to content
This repository was archived by the owner on Jul 13, 2020. It is now read-only.

Set Loader.prototype.constructor #154

Merged
merged 1 commit into from
Jun 16, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -880,6 +880,7 @@ function logloads(loads) {
// importPromises adds ability to import a module twice without error - https://bugs.ecmascript.org/show_bug.cgi?id=2601
var importPromises = {};
Loader.prototype = {
constructor: Loader,
define: function(name, source, options) {
if (importPromises[name])
throw new TypeError('Module is already loading.');
Expand Down