jsparser: lint

This commit is contained in:
jean-emmanuel 2019-04-07 18:38:52 +02:00
parent 78266c0733
commit d657665210
2 changed files with 4 additions and 5 deletions

View file

@ -63,6 +63,7 @@
"through": "2.3.8",
"uglifyify": "5.0.1",
"utf8": "^3.0.0",
"webworkify": "^1.5.0",
"ws": "6.2.1",
"yargs": "13.2.2"
},

View file

@ -117,7 +117,7 @@ module.exports = {
// block requests
sandbox.contentWindow.document.open()
sandbox.contentWindow.document.write(`<meta http-equiv="Content-Security-Policy" content="default-src 'none'; script-src 'unsafe-eval';">`)
sandbox.contentWindow.document.write('<meta http-equiv="Content-Security-Policy" content="default-src \'none\'; script-src \'unsafe-eval\';">')
sandbox.contentWindow.document.close()
// init infinite loop guard
@ -129,9 +129,7 @@ module.exports = {
var _Function = sandbox.contentWindow.Function,
parsers = {},
timeouts = {},
intervals = {}
parsers = {}
sandbox.contentWindow.console = console
sandbox.contentWindow.global = {}
@ -164,7 +162,7 @@ module.exports = {
var ret, err, k
var __VARS = {}
for (var k in context) {
for (k in context) {
var index = contextKeys.indexOf(k)
if (index !== -1) {
contextValues[index] = context[k]