Plato on Github
Report Home
node_modules/jsdom/lib/jsdom/level2/languages/javascript.js
Maintainability
64.06
Lines of code
13
Difficulty
9.71
Estimated Errors
0.08
Function weight
By Complexity
By SLOC
exports.javascript = function(element, code, filename) { var doc = element.ownerDocument, window = doc && doc.parentWindow; if (window) { try { window.run(code, filename); } catch (e) { element.raise( 'error', 'Running ' + filename + ' failed.', {error: e, filename: filename} ); } } };