Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Address review comments.

  • Loading branch information...
commit 88184432a35fade347f614d28581b11f11d61545 1 parent 72877b0
@Mossop authored
Showing with 1 addition and 4 deletions.
  1. +1 −4 lib/sdk/test/loader.js
View
5 lib/sdk/test/loader.js
@@ -6,7 +6,6 @@
const { Loader, resolveURI, Require,
unload, override, descriptor } = require('../loader/cuddlefish');
-const { ensure } = require('../system/unload');
exports.Loader = function(module, globals, packaging) {
let options = packaging || require("@loader/options");
@@ -15,7 +14,7 @@ exports.Loader = function(module, globals, packaging) {
});
let loader = Loader(options);
- let wrapper = Object.create(loader, descriptor({
+ return Object.create(loader, descriptor({
require: Require(loader, module),
sandbox: function(id) {
let requirement = loader.resolve(id, module.id);
@@ -26,6 +25,4 @@ exports.Loader = function(module, globals, packaging) {
unload(loader, reason);
}
}));
- ensure(wrapper);
- return wrapper;
};
Please sign in to comment.
Something went wrong with that request. Please try again.