Use module.exports rather than this.exports

R=esprehn@chromium.org

Review URL: https://codereview.chromium.org/687263005
This commit is contained in:
Adam Barth 2014-10-29 15:21:28 -07:00
parent 7c0366d891
commit 83f05ff8bf
13 changed files with 13 additions and 13 deletions

View File

@ -8,5 +8,5 @@ ConsoleAgent.prototype.enable = function() {
};
};
this.exports = ConsoleAgent;
module.exports = ConsoleAgent;
</script>

View File

@ -165,5 +165,5 @@ DOMAgent.prototype.mutationCallback_ = function(mutationRecords) {
}
};
this.exports = DOMAgent;
module.exports = DOMAgent;
</script>

View File

@ -7,5 +7,5 @@ IndexedDB.prototype.requestDatabaseNames = function() {
return { "databaseNames": [] };
};
this.exports = IndexedDB;
module.exports = IndexedDB;
</script>

View File

@ -34,5 +34,5 @@ Page.prototype.getResourceTree = function() {
};
};
this.exports = Page;
module.exports = Page;
</script>

View File

@ -117,5 +117,5 @@ Runtime.prototype.evaluate = function(params) {
Runtime.prototype.getProperties = debug.loggingStub("getProperties");
this.exports = Runtime;
module.exports = Runtime;
</script>

View File

@ -8,5 +8,5 @@ WorkerAgent.prototype.canInspectWorkers = function() {
};
};
this.exports = WorkerAgent;
module.exports = WorkerAgent;
</script>

View File

@ -16,7 +16,7 @@ function connectToService(url, service, client) {
return wrapHandle(handle, service, client);
}
this.exports = {
module.exports = {
connectToService: connectToService,
wrapHandle: wrapHandle,
};

View File

@ -41,5 +41,5 @@ XMLHttpRequest.prototype.send = function() {
});
};
this.exports = XMLHttpRequest;
module.exports = XMLHttpRequest;
</script>

View File

@ -52,7 +52,7 @@ function register(name, options)
} catch (e) { console.log(e); }
}
this.exports = {
module.exports = {
setupObjectHooks: setupObjectHooks,
exerciseDocumentRegister: exerciseDocumentRegister,
register: register,

View File

@ -1,7 +1,7 @@
<link rel="import" href="../../resources/dump-as-text.sky" />
<link rel="import" href="pass.sky" as="banana" />
<script>
this.exports = {
module.exports = {
message: banana,
};
</script>

View File

@ -1,3 +1,3 @@
<script>
this.exports = "PASS: pass.sky succesfully exported this string."
module.exports = "PASS: pass.sky succesfully exported this string."
</script>

View File

@ -1,3 +1,3 @@
<script>
this.exports = internals.core;
module.exports = internals.core;
</script>

View File

@ -1,3 +1,3 @@
<script>
this.exports = internals.support;
module.exports = internals.support;
</script>