Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1097)

Side by Side Diff: sky/framework/inspector/runtime-agent.sky

Issue 687263005: Use module.exports rather than this.exports (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/framework/inspector/page-agent.sky ('k') | sky/framework/inspector/worker-agent.sky » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <script> 1 <script>
2 2
3 function Runtime(delegate) { 3 function Runtime(delegate) {
4 this.delegate_ = delegate; 4 this.delegate_ = delegate;
5 } 5 }
6 6
7 // FIXME: Move these to their own 'debug' module. 7 // FIXME: Move these to their own 'debug' module.
8 function logParams(name, params) { 8 function logParams(name, params) {
9 console.log(name + "(" + JSON.stringify(params, null, " ") + ")") 9 console.log(name + "(" + JSON.stringify(params, null, " ") + ")")
10 } 10 }
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 } catch (e) { 123 } catch (e) {
124 value = e; 124 value = e;
125 wasThrown = true; 125 wasThrown = true;
126 } 126 }
127 127
128 return makeResult(params, value, wasThrown); 128 return makeResult(params, value, wasThrown);
129 } 129 }
130 130
131 Runtime.prototype.getProperties = debug("getProperties"); 131 Runtime.prototype.getProperties = debug("getProperties");
132 132
133 this.exports = Runtime; 133 module.exports = Runtime;
134 </script> 134 </script>
OLDNEW
« no previous file with comments | « sky/framework/inspector/page-agent.sky ('k') | sky/framework/inspector/worker-agent.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698