| 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 1814 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1825 ScriptMirror.prototype.id = function() { | 1825 ScriptMirror.prototype.id = function() { |
| 1826 return this.script_.id; | 1826 return this.script_.id; |
| 1827 }; | 1827 }; |
| 1828 | 1828 |
| 1829 | 1829 |
| 1830 ScriptMirror.prototype.source = function() { | 1830 ScriptMirror.prototype.source = function() { |
| 1831 return this.script_.source; | 1831 return this.script_.source; |
| 1832 }; | 1832 }; |
| 1833 | 1833 |
| 1834 | 1834 |
| 1835 ScriptMirror.prototype.setSource = function(source) { |
| 1836 %DebugSetScriptSource(this.script_, source); |
| 1837 }; |
| 1838 |
| 1839 |
| 1835 ScriptMirror.prototype.lineOffset = function() { | 1840 ScriptMirror.prototype.lineOffset = function() { |
| 1836 return this.script_.line_offset; | 1841 return this.script_.line_offset; |
| 1837 }; | 1842 }; |
| 1838 | 1843 |
| 1839 | 1844 |
| 1840 ScriptMirror.prototype.columnOffset = function() { | 1845 ScriptMirror.prototype.columnOffset = function() { |
| 1841 return this.script_.column_offset; | 1846 return this.script_.column_offset; |
| 1842 }; | 1847 }; |
| 1843 | 1848 |
| 1844 | 1849 |
| (...skipping 578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2423 } | 2428 } |
| 2424 if (!NUMBER_IS_FINITE(value)) { | 2429 if (!NUMBER_IS_FINITE(value)) { |
| 2425 if (value > 0) { | 2430 if (value > 0) { |
| 2426 return 'Infinity'; | 2431 return 'Infinity'; |
| 2427 } else { | 2432 } else { |
| 2428 return '-Infinity'; | 2433 return '-Infinity'; |
| 2429 } | 2434 } |
| 2430 } | 2435 } |
| 2431 return value; | 2436 return value; |
| 2432 } | 2437 } |
| OLD | NEW |