Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(574)

Side by Side Diff: src/mirror-delay.js

Issue 43130: Fix the handling of line offset when getting the source line from a ScriptMirror (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/messages.js ('k') | test/cctest/test-debug.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1574 matching lines...) Expand 10 before | Expand all | Expand 10 after
1585 ScriptMirror.prototype.scriptType = function() { 1585 ScriptMirror.prototype.scriptType = function() {
1586 return this.script_.type; 1586 return this.script_.type;
1587 }; 1587 };
1588 1588
1589 1589
1590 ScriptMirror.prototype.lineCount = function() { 1590 ScriptMirror.prototype.lineCount = function() {
1591 return this.script_.lineCount(); 1591 return this.script_.lineCount();
1592 }; 1592 };
1593 1593
1594 1594
1595 ScriptMirror.prototype.locationFromPosition = function(position) { 1595 ScriptMirror.prototype.locationFromPosition = function(
1596 return this.script_.locationFromPosition(position); 1596 position, include_resource_offset) {
1597 return this.script_.locationFromPosition(position, include_resource_offset);
1597 } 1598 }
1598 1599
1599 1600
1600 ScriptMirror.prototype.sourceSlice = function (opt_from_line, opt_to_line) { 1601 ScriptMirror.prototype.sourceSlice = function (opt_from_line, opt_to_line) {
1601 return this.script_.sourceSlice(opt_from_line, opt_to_line); 1602 return this.script_.sourceSlice(opt_from_line, opt_to_line);
1602 } 1603 }
1603 1604
1604 1605
1605 ScriptMirror.prototype.toText = function() { 1606 ScriptMirror.prototype.toText = function() {
1606 var result = ''; 1607 var result = '';
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
2073 /** 2074 /**
2074 * Convert a Date to ISO 8601 format. To avoid depending on the Date object 2075 * Convert a Date to ISO 8601 format. To avoid depending on the Date object
2075 * this method calls the functions in date.js directly and not through the 2076 * this method calls the functions in date.js directly and not through the
2076 * value. 2077 * value.
2077 * @param {Date} value The Date value to format as JSON 2078 * @param {Date} value The Date value to format as JSON
2078 * @return {string} JSON formatted Date value 2079 * @return {string} JSON formatted Date value
2079 */ 2080 */
2080 function DateToJSON_(value) { 2081 function DateToJSON_(value) {
2081 return '"' + DateToISO8601_(value) + '"'; 2082 return '"' + DateToISO8601_(value) + '"';
2082 } 2083 }
OLDNEW
« no previous file with comments | « src/messages.js ('k') | test/cctest/test-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698