console: attempt to fix line numbers in script errors
This commit is contained in:
parent
9aade43059
commit
7c654e6412
1 changed files with 1 additions and 1 deletions
|
|
@ -964,7 +964,7 @@ class Widget extends EventEmitter {
|
|||
errorProp(name, type, error) {
|
||||
|
||||
let stackline = error.stack ? (error.stack.match(/>:([0-9]+):[0-9]+/) || '') : '',
|
||||
line = stackline.length > 1 ? ' at line ' + (parseInt(stackline[1]) - (type.includes('{}') ? 1 : 0)) : '',
|
||||
line = stackline.length > 1 ? ' at line ' + (parseInt(stackline[1]) - (type.includes('{}') ? 1 : 2)) : '',
|
||||
id = this.getProp('id') || this.props.id,
|
||||
widget = this // used for edit link in console
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue