Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: jshydra.js

Issue 29345403: Issue 4088 - JSHydra-generated module scopes shouldn't be called immediately (Closed)
Patch Set: Renamed callback Created May 31, 2016, 2:53 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « autotest/test_abprewrite_module.js.expected ('k') | scripts/abprewrite.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: jshydra.js
===================================================================
--- a/jshydra.js
+++ b/jshydra.js
@@ -35,9 +35,12 @@ var _print = print;
}
if (!scriptArgs.length)
throw Error("No script to execute");
include(scriptArgs[0]);
for (var i = 1; i < scriptArgs.length; i++)
process_js(Reflect.parse(read(scriptArgs[i])), scriptArgs[i], scriptArg);
+
+ if (typeof post_processing == "function")
+ post_processing();
})(this.arguments || this.scriptArgs);
« no previous file with comments | « autotest/test_abprewrite_module.js.expected ('k') | scripts/abprewrite.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld