| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 24 matching lines...) Expand all Loading... |
| 35 "tempus luctus. Nullam condimentum aliquam odio, at dignissim" + | 35 "tempus luctus. Nullam condimentum aliquam odio, at dignissim" + |
| 36 "augue tincidunt in. Nam mattis vitae mauris eget dictum." + | 36 "augue tincidunt in. Nam mattis vitae mauris eget dictum." + |
| 37 "Nam accumsan dignissim turpis a turpis duis."; | 37 "Nam accumsan dignissim turpis a turpis duis."; |
| 38 } | 38 } |
| 39 | 39 |
| 40 assertTrue(veryLongString().length > 256); | 40 assertTrue(veryLongString().length > 256); |
| 41 | 41 |
| 42 var re = /...<omitted>.../; | 42 var re = /...<omitted>.../; |
| 43 | 43 |
| 44 try { | 44 try { |
| 45 Date.prototype.setDate.call(veryLongString); | 45 Number.prototype.toFixed.call(veryLongString); |
| 46 } catch (e) { | 46 } catch (e) { |
| 47 assertTrue(e.message.length < 256); | 47 assertTrue(e.message.length < 256); |
| 48 assertTrue(re.test(e.message)); | 48 assertTrue(re.test(e.message)); |
| 49 } | 49 } |
| 50 | 50 |
| 51 try { | 51 try { |
| 52 throw Error(veryLongString()); | 52 throw Error(veryLongString()); |
| 53 } catch (e) { | 53 } catch (e) { |
| 54 assertEquals(veryLongString(), e.message); | 54 assertEquals(veryLongString(), e.message); |
| 55 } | 55 } |
| OLD | NEW |