| OLD | NEW |
| 1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ | 1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
| 2 /* ***** BEGIN LICENSE BLOCK ***** | 2 /* ***** BEGIN LICENSE BLOCK ***** |
| 3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | 3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
| 4 * | 4 * |
| 5 * The contents of this file are subject to the Mozilla Public License Version | 5 * The contents of this file are subject to the Mozilla Public License Version |
| 6 * 1.1 (the "License"); you may not use this file except in compliance with | 6 * 1.1 (the "License"); you may not use this file except in compliance with |
| 7 * the License. You may obtain a copy of the License at | 7 * the License. You may obtain a copy of the License at |
| 8 * http://www.mozilla.org/MPL/ | 8 * http://www.mozilla.org/MPL/ |
| 9 * | 9 * |
| 10 * Software distributed under the License is distributed on an "AS IS" basis, | 10 * Software distributed under the License is distributed on an "AS IS" basis, |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 //----------------------------------------------------------------------------- | 45 //----------------------------------------------------------------------------- |
| 46 test(); | 46 test(); |
| 47 //----------------------------------------------------------------------------- | 47 //----------------------------------------------------------------------------- |
| 48 | 48 |
| 49 function test() | 49 function test() |
| 50 { | 50 { |
| 51 enterFunc ('test'); | 51 enterFunc ('test'); |
| 52 printBugNumber(BUGNUMBER); | 52 printBugNumber(BUGNUMBER); |
| 53 printStatus (summary); | 53 printStatus (summary); |
| 54 | 54 |
| 55 expect = 'TypeError: can\'t convert global to string'; | |
| 56 try | 55 try |
| 57 { | 56 { |
| 58 this.toString = function() { return {}; }; p = [11].map('foo'.split); | 57 this.toString = function() { return {}; }; p = [11].map('foo'.split); |
| 59 } | 58 } |
| 60 catch(ex) | 59 catch(ex) |
| 61 { | 60 { |
| 62 actual = ex + ''; | |
| 63 } | 61 } |
| 64 reportCompare(expect, actual, summary); | 62 reportCompare(expect, actual, summary); |
| 65 | 63 |
| 66 exitFunc ('test'); | 64 exitFunc ('test'); |
| 67 } | 65 } |
| OLD | NEW |