Lines Matching +refs:current +refs:line
320 return location.line + 1;
412 var line = this.lineFromPosition(position);
413 if (line == -1) return null;
417 var start = line == 0 ? 0 : line_ends[line - 1] + 1;
418 var end = line_ends[line];
426 line += this.line_offset;
427 if (line == this.line_offset) {
432 return new SourceLocation(this, position, line, column, start, end);
454 var line = 0;
456 line = opt_line - this.line_offset;
462 if (line == 0) {
467 if (line < 0 || column < 0 || offset_position < 0) return null;
468 if (line == 0) {
474 if (offset_line == -1 || offset_line + line >= this.lineCount()) {
479 this.line_ends[offset_line + line - 1] + 1 + column); // line > 0 here.
528 var line = 0;
530 line = opt_line - this.line_offset;
534 if (line < 0 || this.lineCount() <= line) {
540 var start = line == 0 ? 0 : line_ends[line - 1] + 1;
541 var end = line_ends[line];
614 function SourceLocation(script, position, line, column, start, end) { argument
617 this.line = line;
873 return location ? location.line + 1 : null;
936 var line = "";
947 line += typeName + ".";
949 line += functionName;
953 line += " [as " + methodName + "]";
956 line += typeName + "." + (methodName || "<anonymous>");
959 line += "new " + (functionName || "<anonymous>");
961 line += functionName;
963 line += fileLocation;
967 line += " (" + fileLocation + ")";
969 return line;
1017 eval_origin += ":" + (location.line + 1);
1085 var line;
1087 line = frame.toString();
1090 line = "<error: " + e + ">";
1093 line = "<error>";
1096 lines.push(" at " + line);
1237 var current = error;
1239 while (current && !%HasOwnProperty(current, name)) {
1240 current = %GetPrototype(current);
1242 if (IS_NULL(current)) return UNDEFINED;
1243 if (!IS_OBJECT(current)) return error[name];
1247 var desc = %GetOwnProperty(current, name);
1250 if (current === $ReferenceError.prototype)
1252 if (current === $SyntaxError.prototype)
1254 if (current === $TypeError.prototype)