| OLD | NEW |
| 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 1564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1575 ScriptMirror.prototype.lineOffset = function() { | 1575 ScriptMirror.prototype.lineOffset = function() { |
| 1576 return this.script_.line_offset; | 1576 return this.script_.line_offset; |
| 1577 }; | 1577 }; |
| 1578 | 1578 |
| 1579 | 1579 |
| 1580 ScriptMirror.prototype.columnOffset = function() { | 1580 ScriptMirror.prototype.columnOffset = function() { |
| 1581 return this.script_.column_offset; | 1581 return this.script_.column_offset; |
| 1582 }; | 1582 }; |
| 1583 | 1583 |
| 1584 | 1584 |
| 1585 ScriptMirror.prototype.data = function() { |
| 1586 return this.script_.data; |
| 1587 }; |
| 1588 |
| 1589 |
| 1585 ScriptMirror.prototype.scriptType = function() { | 1590 ScriptMirror.prototype.scriptType = function() { |
| 1586 return this.script_.type; | 1591 return this.script_.type; |
| 1587 }; | 1592 }; |
| 1588 | 1593 |
| 1589 | 1594 |
| 1590 ScriptMirror.prototype.lineCount = function() { | 1595 ScriptMirror.prototype.lineCount = function() { |
| 1591 return this.script_.lineCount(); | 1596 return this.script_.lineCount(); |
| 1592 }; | 1597 }; |
| 1593 | 1598 |
| 1594 | 1599 |
| (...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2080 /** | 2085 /** |
| 2081 * Convert a Date to ISO 8601 format. To avoid depending on the Date object | 2086 * Convert a Date to ISO 8601 format. To avoid depending on the Date object |
| 2082 * this method calls the functions in date.js directly and not through the | 2087 * this method calls the functions in date.js directly and not through the |
| 2083 * value. | 2088 * value. |
| 2084 * @param {Date} value The Date value to format as JSON | 2089 * @param {Date} value The Date value to format as JSON |
| 2085 * @return {string} JSON formatted Date value | 2090 * @return {string} JSON formatted Date value |
| 2086 */ | 2091 */ |
| 2087 function DateToJSON_(value) { | 2092 function DateToJSON_(value) { |
| 2088 return '"' + DateToISO8601_(value) + '"'; | 2093 return '"' + DateToISO8601_(value) + '"'; |
| 2089 } | 2094 } |
| OLD | NEW |