| Index: scripts/abprewrite.js |
| =================================================================== |
| --- a/scripts/abprewrite.js |
| +++ b/scripts/abprewrite.js |
| @@ -551,19 +551,19 @@ process_js = function(ast, filename, arg |
| { |
| // Wrap the entire module into a function to give it an independent scope. |
| // Return exported symbols: |
| // |
| // require.scopes["foobar"] = (function() { |
| // var exports = {}; |
| // ... |
| // return exports; |
| - // })(); |
| + // }); |
| let code = 'require.scopes["' + options.filename + '"] = (function() {\n' + |
| decompileAST(ast).replace(/^("use strict";\n)?/, |
| "$1var exports = {};\n") + |
| 'return exports;\n' + |
| - '})();\n'; |
| + '});\n'; |
| _print(js_beautify(code, options)); |
| } |
| else |
| _print(js_beautify(decompileAST(ast), options)); |
| } |