mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Use module.exports rather than this.exports
R=esprehn@chromium.org Review URL: https://codereview.chromium.org/687263005
This commit is contained in:
parent
7c0366d891
commit
83f05ff8bf
@ -8,5 +8,5 @@ ConsoleAgent.prototype.enable = function() {
|
||||
};
|
||||
};
|
||||
|
||||
this.exports = ConsoleAgent;
|
||||
module.exports = ConsoleAgent;
|
||||
</script>
|
||||
|
||||
@ -165,5 +165,5 @@ DOMAgent.prototype.mutationCallback_ = function(mutationRecords) {
|
||||
}
|
||||
};
|
||||
|
||||
this.exports = DOMAgent;
|
||||
module.exports = DOMAgent;
|
||||
</script>
|
||||
|
||||
@ -7,5 +7,5 @@ IndexedDB.prototype.requestDatabaseNames = function() {
|
||||
return { "databaseNames": [] };
|
||||
};
|
||||
|
||||
this.exports = IndexedDB;
|
||||
module.exports = IndexedDB;
|
||||
</script>
|
||||
|
||||
@ -34,5 +34,5 @@ Page.prototype.getResourceTree = function() {
|
||||
};
|
||||
};
|
||||
|
||||
this.exports = Page;
|
||||
module.exports = Page;
|
||||
</script>
|
||||
|
||||
@ -117,5 +117,5 @@ Runtime.prototype.evaluate = function(params) {
|
||||
|
||||
Runtime.prototype.getProperties = debug.loggingStub("getProperties");
|
||||
|
||||
this.exports = Runtime;
|
||||
module.exports = Runtime;
|
||||
</script>
|
||||
|
||||
@ -8,5 +8,5 @@ WorkerAgent.prototype.canInspectWorkers = function() {
|
||||
};
|
||||
};
|
||||
|
||||
this.exports = WorkerAgent;
|
||||
module.exports = WorkerAgent;
|
||||
</script>
|
||||
|
||||
@ -16,7 +16,7 @@ function connectToService(url, service, client) {
|
||||
return wrapHandle(handle, service, client);
|
||||
}
|
||||
|
||||
this.exports = {
|
||||
module.exports = {
|
||||
connectToService: connectToService,
|
||||
wrapHandle: wrapHandle,
|
||||
};
|
||||
|
||||
@ -41,5 +41,5 @@ XMLHttpRequest.prototype.send = function() {
|
||||
});
|
||||
};
|
||||
|
||||
this.exports = XMLHttpRequest;
|
||||
module.exports = XMLHttpRequest;
|
||||
</script>
|
||||
|
||||
@ -52,7 +52,7 @@ function register(name, options)
|
||||
} catch (e) { console.log(e); }
|
||||
}
|
||||
|
||||
this.exports = {
|
||||
module.exports = {
|
||||
setupObjectHooks: setupObjectHooks,
|
||||
exerciseDocumentRegister: exerciseDocumentRegister,
|
||||
register: register,
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
<script>
|
||||
this.exports = "PASS: pass.sky succesfully exported this string."
|
||||
module.exports = "PASS: pass.sky succesfully exported this string."
|
||||
</script>
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
<script>
|
||||
this.exports = internals.core;
|
||||
module.exports = internals.core;
|
||||
</script>
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
<script>
|
||||
this.exports = internals.support;
|
||||
module.exports = internals.support;
|
||||
</script>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user