Skip to content

Commit

Permalink
fixed eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
wargio committed Nov 9, 2018
1 parent bd81259 commit b3ad0fd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions require.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ require.src = {};
var _extract_variable = function(exception) {
var variable = exception.message.match(/'([-_\w]+)'/);
if (!variable) {
lines = exception.stack.split('\n')
magic = ':' + exception.lineNumber + ')';
var lines = exception.stack.split('\n');
var magic = ':' + exception.lineNumber + ')';
for (var i = lines.length - 1; i >= 0; i--) {
if (lines[i].indexOf(magic) > 0) {
variable = lines[i - 1].match(/at\s([\w_]+)\s/);
Expand Down Expand Up @@ -148,7 +148,7 @@ require.src = {};
return exception;
}
} catch (e) {
console.log('Duktape.errCreate exception.')
console.log('Duktape.errCreate exception.');
console.log(e.stack);
}
return err;
Expand Down

0 comments on commit b3ad0fd

Please sign in to comment.