Skip to content

Commit e5999a3

Browse files
author
Hage Yaapa
committed
lint
1 parent 9279b54 commit e5999a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ module.exports = function safeEval (code, context, opts) {
55
var resultKey = 'SAFE_EVAL_' + Math.floor(Math.random() * 1000000)
66
sandbox[resultKey] = {}
77
var clearContext = `
8-
(function(){
8+
(function() {
99
Function = undefined;
1010
const keys = Object.getOwnPropertyNames(this).concat(['constructor']);
1111
keys.forEach((key) => {
1212
const item = this[key];
13-
if(!item || typeof item.constructor !== 'function') return;
13+
if (!item || typeof item.constructor !== 'function') return;
1414
this[key].constructor = undefined;
1515
});
1616
})();

0 commit comments

Comments
 (0)