mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Make line number a number and add comments.
This commit is contained in:
@@ -56,6 +56,7 @@ var logInBrowser = function (obj) {
|
||||
}
|
||||
};
|
||||
|
||||
// @returns {Object: { line: Number, fileName: String }}
|
||||
var getCallerDetails = function () {
|
||||
var e = new Error();
|
||||
// now magic will happen: get line number from callstack
|
||||
@@ -68,7 +69,7 @@ var getCallerDetails = function () {
|
||||
line = lines[++index];
|
||||
|
||||
var details = {};
|
||||
details.line = line.split(':')[1];
|
||||
details.line = +line.split(':')[1];
|
||||
|
||||
// line can be in two formats depending on function description availability:
|
||||
// 0) at functionName (/filePath/file.js:line:position)
|
||||
|
||||
Reference in New Issue
Block a user