summaryrefslogtreecommitdiffstats
path: root/spec/env/browser.js
diff options
context:
space:
mode:
Diffstat (limited to 'spec/env/browser.js')
-rw-r--r--spec/env/browser.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/env/browser.js b/spec/env/browser.js
index a9042e3..c9414d4 100644
--- a/spec/env/browser.js
+++ b/spec/env/browser.js
@@ -1,8 +1,6 @@
-/*global handlebarsEnv */
require('./common');
-var _ = require('underscore'),
- fs = require('fs'),
+var fs = require('fs'),
vm = require('vm');
global.Handlebars = 'no-conflict';
@@ -21,10 +19,12 @@ global.CompilerContext = {
};
function safeEval(templateSpec) {
+ /*eslint-disable no-eval, no-console */
try {
return eval('(' + templateSpec + ')');
} catch (err) {
console.error(templateSpec);
throw err;
}
+ /*eslint-enable no-eval, no-console */
}