Version: 18.1.018.1.118.1.219.0.019.0.119.1.020.0.020.1.020.2.120.2.220.3.020.3.120.3.220.4.021.0.022.0.022.0.122.0.222.0.322.0.422.0.523.0.024.0.024.1.024.1.124.2.024.2.124.3.024.3.124.3.224.4.024.5.024.5.124.6.024.7.024.7.125.0.0-beta.025.0.0-beta.125.0.025.0.125.1.025.1.225.1.325.1.425.2.025.3.025.3.1
'use strict';
const internals = {};
exports.position = function (err) {
const match = /\:(\d+)\:(\d+)/.exec(err.stack.split('\n')[1]);
if (!match) {
return {};
}
return {
line: parseInt(match[1], 10),
column: parseInt(match[2], 10)
};