mirror of
https://github.com/discourse/discourse.git
synced 2025-03-22 01:40:39 +08:00
Remove unused stuff.
This commit is contained in:
parent
804a489c7b
commit
0e296e767a
@ -1,22 +0,0 @@
|
|||||||
(function(program, execJS) { execJS(program) })(function(module, exports, console) {
|
|
||||||
#{source}
|
|
||||||
}, function(program) {
|
|
||||||
var output, print = function(string) {
|
|
||||||
process.stdout.write('' + string);
|
|
||||||
};
|
|
||||||
try {
|
|
||||||
result = program();
|
|
||||||
if (typeof result == 'undefined' && result !== null) {
|
|
||||||
print('["ok"]');
|
|
||||||
} else {
|
|
||||||
try {
|
|
||||||
print(JSON.stringify(['ok', result]));
|
|
||||||
} catch (err) {
|
|
||||||
print('["err"]');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} catch (err) {
|
|
||||||
print(JSON.stringify(['err', '' + err]));
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
@ -69,10 +69,6 @@ module Tilt
|
|||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def transpiler_path
|
|
||||||
File.expand_path('../../support/es6-module-transpiler.js', __FILE__)
|
|
||||||
end
|
|
||||||
|
|
||||||
def generate_source(scope)
|
def generate_source(scope)
|
||||||
"new module.exports.Compiler(#{::JSON.generate(data, quirks_mode: true)}, '#{module_name(scope.root_path, scope.logical_path)}', #{compiler_options}).#{compiler_method}()"
|
"new module.exports.Compiler(#{::JSON.generate(data, quirks_mode: true)}, '#{module_name(scope.root_path, scope.logical_path)}', #{compiler_options}).#{compiler_method}()"
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user