jshint fixes

dev/git-series/gccdum
Matt Godbolt 7 years ago
parent 7c7cde93af
commit 3418b92ea0

@ -29,15 +29,16 @@ define(function (require, exports) {
if (options.googleAnalyticsEnabled) {
(function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r;
i.GoogleAnalyticsObject = r;
i[r] = i[r] || function () {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date();
a = s.createElement(o),
m = s.getElementsByTagName(o)[0];
(i[r].q = i[r].q || []).push(arguments);
};
i[r].l = 1 * new Date();
a = s.createElement(o);
m = s.getElementsByTagName(o)[0];
a.async = 1;
a.src = g;
m.parentNode.insertBefore(a, m)
m.parentNode.insertBefore(a, m);
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
exports.ga = window.ga;
ga('create', options.googleAnalyticsAccount, 'auto');

@ -61,9 +61,7 @@ define(function (require) {
return "keyword";
}
if (stream.eatSpace()) return null;
if (stream.match(x86_32regName)
|| stream.match(x86_64regName)
|| stream.match(x86_xregName)) {
if (stream.match(x86_32regName) || stream.match(x86_64regName) || stream.match(x86_xregName)) {
return "variable-3";
}
if (stream.match(x86_keywords)) return "keyword";

@ -227,7 +227,7 @@ define(function (require) {
Compiler.prototype.onCompileResponse = function (request, result) {
ga('send', 'event', 'Compile', request.compiler, request.options, result.code);
ga('send', 'timing', 'Compile', 'Timing', Date.now() - request.timestamp)
ga('send', 'timing', 'Compile', 'Timing', Date.now() - request.timestamp);
this.outputEditor.operation(_.bind(function () {
this.setAssembly(result.asm || fakeAsm("[no output]"));
if (request.filters.binary) {

Loading…
Cancel
Save