diff options
author | David Fugate <dfugate@microsoft.com> | 2012-02-24 15:40:42 -0800 |
---|---|---|
committer | David Fugate <dfugate@microsoft.com> | 2012-02-24 15:40:42 -0800 |
commit | c64d7b5758acadb89a674dac88b6dd4671293189 (patch) | |
tree | 0226a052220887027d0fbf70211866cb25ddbb35 /test/suite | |
parent | d9e409ac1bf86d3d7bba85e9be2d5663de11b1a1 (diff) | |
download | qtdeclarative-testsuites-c64d7b5758acadb89a674dac88b6dd4671293189.tar.gz |
https://bugs.ecmascript.org/show_bug.cgi?id=274
Fixed.
Re-gen'ed the website.
Diffstat (limited to 'test/suite')
25 files changed, 104 insertions, 53 deletions
diff --git a/test/suite/ch12/12.6/12.6.1/S12.6.1_A2.js b/test/suite/ch12/12.6/12.6.1/S12.6.1_A2.js index 6540356a0..023c7d4a2 100644 --- a/test/suite/ch12/12.6/12.6.1/S12.6.1_A2.js +++ b/test/suite/ch12/12.6/12.6.1/S12.6.1_A2.js @@ -10,8 +10,10 @@ try { do __in__do = "reached"; while (abbracadabra); - $ERROR('#1: \'do __in__do = "reached"; while (abbracadabra)\' lead to throwing exception'); -} catch (e) {} + $ERROR('#1: \'do __in__do = "reached"; while (abbracadabra)\' lead to throwing exception');
+} catch (e) {
+ if (e instanceof Test262Error) throw e; +} ////////////////////////////////////////////////////////////////////////////// //CHECK#1 diff --git a/test/suite/ch12/12.6/12.6.1/S12.6.1_A9.js b/test/suite/ch12/12.6/12.6.1/S12.6.1_A9.js index 7ef695f56..e9e831b07 100644 --- a/test/suite/ch12/12.6/12.6.1/S12.6.1_A9.js +++ b/test/suite/ch12/12.6/12.6.1/S12.6.1_A9.js @@ -15,9 +15,11 @@ try { var x = 1; abaracadabara; } while(0); - $ERROR('#1: "abbracadabra" lead to throwing exception'); - -} catch (e) {} + $ERROR('#1: "abbracadabra" lead to throwing exception');
+
+} catch (e) {
+ if (e instanceof Test262Error) throw e; +} if (x !== 1) { $ERROR('#1.1: x === 1. Actual: x ==='+ x ); diff --git a/test/suite/ch12/12.6/12.6.2/S12.6.2_A9.js b/test/suite/ch12/12.6/12.6.2/S12.6.2_A9.js index 12618180f..f8cbed0a1 100644 --- a/test/suite/ch12/12.6/12.6.2/S12.6.2_A9.js +++ b/test/suite/ch12/12.6/12.6.2/S12.6.2_A9.js @@ -15,9 +15,11 @@ try { var x = 1; abaracadabara; }; - $ERROR('#1: "abbracadabra" lead to throwing exception'); - -} catch (e) {} + $ERROR('#1: "abbracadabra" lead to throwing exception');
+
+} catch (e) {
+ if (e instanceof Test262Error) throw e; +} if (x !== 1) { $ERROR('#1.1: while statement evaluates as is, without syntax checks'); diff --git a/test/suite/ch13/13.2/S13.2.1_A7_T3.js b/test/suite/ch13/13.2/S13.2.1_A7_T3.js index 987e7d18f..efbb8a04d 100644 --- a/test/suite/ch13/13.2/S13.2.1_A7_T3.js +++ b/test/suite/ch13/13.2/S13.2.1_A7_T3.js @@ -10,7 +10,6 @@ * @description Returning number. Declaring a function with "function __func()" */ -var x; function __func(){ x = 1; return x; @@ -21,7 +20,9 @@ function __func(){ try { x=x; $ERROR('#0: "x=x" lead to throwing exception'); -} catch (e) {} +} catch (e) { + if (e instanceof Test262Error) throw e; +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/suite/ch13/13.2/S13.2.1_A7_T4.js b/test/suite/ch13/13.2/S13.2.1_A7_T4.js index 146fd1f64..7461324ed 100644 --- a/test/suite/ch13/13.2/S13.2.1_A7_T4.js +++ b/test/suite/ch13/13.2/S13.2.1_A7_T4.js @@ -19,8 +19,10 @@ function __func(){ //CHECK# try { x=x; - $ERROR('#0: "x=x" lead to throwing exception'); -} catch (e) {} + $ERROR('#0: "x=x" lead to throwing exception');
+} catch (e) {
+ if (e instanceof Test262Error) throw e; +} // ////////////////////////////////////////////////////////////////////////////// @@ -46,8 +48,10 @@ if (!(__x)) { //CHECK#3 try { x=x; - $ERROR('#3: "x=x" lead to throwing exception'); -} catch (e) {} + $ERROR('#3: "x=x" lead to throwing exception');
+} catch (e) {
+ if (e instanceof Test262Error) throw e; +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/suite/ch13/13.2/S13.2.2_A11.js b/test/suite/ch13/13.2/S13.2.2_A11.js index d9e029b34..13f7f4e9b 100644 --- a/test/suite/ch13/13.2/S13.2.2_A11.js +++ b/test/suite/ch13/13.2/S13.2.2_A11.js @@ -22,8 +22,10 @@ function FACTORY(){ //CHECK#1 try { var obj = new FACTORY(); - $ERROR('#1: var obj = new FACTORY() lead to throwing exception'); -} catch (e) {} + $ERROR('#1: var obj = new FACTORY() lead to throwing exception');
+} catch (e) {
+ if (e instanceof Test262Error) throw e; +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/suite/ch13/13.2/S13.2.2_A13.js b/test/suite/ch13/13.2/S13.2.2_A13.js index 152351c56..79801ac9e 100644 --- a/test/suite/ch13/13.2/S13.2.2_A13.js +++ b/test/suite/ch13/13.2/S13.2.2_A13.js @@ -20,8 +20,10 @@ function FACTORY(){ //CHECK#1 try { var obj = new FACTORY(); - $ERROR('#1: var obj = new FACTORY() lead to throwing exception'); -} catch (e) {} + $ERROR('#1: var obj = new FACTORY() lead to throwing exception');
+} catch (e) {
+ if (e instanceof Test262Error) throw e; +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/suite/ch13/13.2/S13.2.2_A9.js b/test/suite/ch13/13.2/S13.2.2_A9.js index ff722e706..4e178109c 100644 --- a/test/suite/ch13/13.2/S13.2.2_A9.js +++ b/test/suite/ch13/13.2/S13.2.2_A9.js @@ -22,8 +22,10 @@ function FACTORY(){ //CHECK#1 try { var obj = new FACTORY(); - $ERROR('#1: var obj = new FACTORY() lead to throwing exception'); -} catch (e) {} + $ERROR('#1: var obj = new FACTORY() lead to throwing exception');
+} catch (e) {
+ if (e instanceof Test262Error) throw e; +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/suite/ch15/15.1/15.1.3/15.1.3.1/S15.1.3.1_A2.2_T1.js b/test/suite/ch15/15.1/15.1.3/15.1.3.1/S15.1.3.1_A2.2_T1.js index ad34351da..b9a08ea9e 100644 --- a/test/suite/ch15/15.1/15.1.3/15.1.3.1/S15.1.3.1_A2.2_T1.js +++ b/test/suite/ch15/15.1/15.1.3/15.1.3.1/S15.1.3.1_A2.2_T1.js @@ -25,7 +25,9 @@ for (var indexB1 = 0x00; indexB1 <= 0x7F; indexB1++) { } if (hex === "#") continue l; if (decodeURI("%" + hexB1.substring(2)) === hex) continue; - } catch (e) {} + } catch (e) { + if (e instanceof Test262Error) throw e; + } if (indexO === 0) { indexO = index; } else { diff --git a/test/suite/ch15/15.1/15.1.3/15.1.3.1/S15.1.3.1_A2.3_T1.js b/test/suite/ch15/15.1/15.1.3/15.1.3.1/S15.1.3.1_A2.3_T1.js index 78f9c11f9..980a06175 100644 --- a/test/suite/ch15/15.1/15.1.3/15.1.3.1/S15.1.3.1_A2.3_T1.js +++ b/test/suite/ch15/15.1/15.1.3/15.1.3.1/S15.1.3.1_A2.3_T1.js @@ -20,8 +20,10 @@ for (var indexB1 = 0xC2; indexB1 <= 0xDF; indexB1++) { var hexB2 = decimalToHexString(indexB2); var index = (indexB1 & 0x1F) * 0x40 + (indexB2 & 0x3F); try { - if (decodeURI("%" + hexB1.substring(2) + "%" + hexB2.substring(2)) === String.fromCharCode(index)) continue; - } catch (e) {} + if (decodeURI("%" + hexB1.substring(2) + "%" + hexB2.substring(2)) === String.fromCharCode(index)) continue;
+ } catch (e) {
+ if (e instanceof Test262Error) throw e; + } if (indexO === 0) { indexO = index; } else { diff --git a/test/suite/ch15/15.1/15.1.3/15.1.3.1/S15.1.3.1_A2.4_T1.js b/test/suite/ch15/15.1/15.1.3/15.1.3.1/S15.1.3.1_A2.4_T1.js index 7afbe19cc..d544f41f3 100644 --- a/test/suite/ch15/15.1/15.1.3/15.1.3.1/S15.1.3.1_A2.4_T1.js +++ b/test/suite/ch15/15.1/15.1.3/15.1.3.1/S15.1.3.1_A2.4_T1.js @@ -24,8 +24,10 @@ for (var indexB1 = 0xE0; indexB1 <= 0xEF; indexB1++) { var hexB3 = decimalToHexString(indexB3); var index = (indexB1 & 0x0F) * 0x1000 + (indexB2 & 0x3F) * 0x40 + (indexB3 & 0x3F); try { - if (decodeURI("%" + hexB1.substring(2) + "%" + hexB2.substring(2) + "%" + hexB3.substring(2)) === String.fromCharCode(index)) continue; - } catch (e) {} + if (decodeURI("%" + hexB1.substring(2) + "%" + hexB2.substring(2) + "%" + hexB3.substring(2)) === String.fromCharCode(index)) continue;
+ } catch (e) {
+ if (e instanceof Test262Error) throw e; + } if (indexO === 0) { indexO = index; } else { diff --git a/test/suite/ch15/15.1/15.1.3/15.1.3.1/S15.1.3.1_A2.5_T1.js b/test/suite/ch15/15.1/15.1.3/15.1.3.1/S15.1.3.1_A2.5_T1.js index a67718af1..0e1017501 100644 --- a/test/suite/ch15/15.1/15.1.3/15.1.3.1/S15.1.3.1_A2.5_T1.js +++ b/test/suite/ch15/15.1/15.1.3/15.1.3.1/S15.1.3.1_A2.5_T1.js @@ -28,8 +28,10 @@ for (var indexB1 = 0xF0; indexB1 <= 0xF4; indexB1++) { var L = ((index - 0x10000) & 0x03FF) + 0xDC00; var H = (((index - 0x10000) >> 10) & 0x03FF) + 0xD800; try { - if (decodeURI("%" + hexB1.substring(3) + "%" + hexB2.substring(3) + "%" + hexB3.substring(3) + "%" + hexB4.substring(3)) === String.fromCharCode(H) + String.fromCharCode(L)) continue; - } catch (e) {} + if (decodeURI("%" + hexB1.substring(3) + "%" + hexB2.substring(3) + "%" + hexB3.substring(3) + "%" + hexB4.substring(3)) === String.fromCharCode(H) + String.fromCharCode(L)) continue;
+ } catch (e) {
+ if (e instanceof Test262Error) throw e; + } if (indexO === 0) { indexO = index; } else { diff --git a/test/suite/ch15/15.1/15.1.3/15.1.3.2/S15.1.3.2_A2.2_T1.js b/test/suite/ch15/15.1/15.1.3/15.1.3.2/S15.1.3.2_A2.2_T1.js index 084de4fb1..8e7293f0b 100644 --- a/test/suite/ch15/15.1/15.1.3/15.1.3.2/S15.1.3.2_A2.2_T1.js +++ b/test/suite/ch15/15.1/15.1.3/15.1.3.2/S15.1.3.2_A2.2_T1.js @@ -18,8 +18,10 @@ for (indexB1 = 0x00; indexB1 <= 0x7F; indexB1++) { var index = indexB1; try { hex = String.fromCharCode(index); - if (decodeURIComponent("%" + hexB1.substring(2)) === hex) continue; - } catch (e) {} + if (decodeURIComponent("%" + hexB1.substring(2)) === hex) continue;
+ } catch (e) {
+ if (e instanceof Test262Error) throw e; + } if (indexO === 0) { indexO = index; } else { diff --git a/test/suite/ch15/15.1/15.1.3/15.1.3.2/S15.1.3.2_A2.3_T1.js b/test/suite/ch15/15.1/15.1.3/15.1.3.2/S15.1.3.2_A2.3_T1.js index 578f3b136..b42a9eab6 100644 --- a/test/suite/ch15/15.1/15.1.3/15.1.3.2/S15.1.3.2_A2.3_T1.js +++ b/test/suite/ch15/15.1/15.1.3/15.1.3.2/S15.1.3.2_A2.3_T1.js @@ -20,8 +20,10 @@ for (indexB1 = 0xC2; indexB1 <= 0xDF; indexB1++) { var hexB2 = decimalToHexString(indexB2); var index = (indexB1 & 0x1F) * 0x40 + (indexB2 & 0x3F); try { - if (decodeURIComponent("%" + hexB1.substring(2) + "%" + hexB2.substring(2)) === String.fromCharCode(index)) continue; - } catch (e) {} + if (decodeURIComponent("%" + hexB1.substring(2) + "%" + hexB2.substring(2)) === String.fromCharCode(index)) continue;
+ } catch (e) {
+ if (e instanceof Test262Error) throw e; + } if (indexO === 0) { indexO = index; } else { diff --git a/test/suite/ch15/15.1/15.1.3/15.1.3.2/S15.1.3.2_A2.4_T1.js b/test/suite/ch15/15.1/15.1.3/15.1.3.2/S15.1.3.2_A2.4_T1.js index 9721ccf4d..6ca3dcf74 100644 --- a/test/suite/ch15/15.1/15.1.3/15.1.3.2/S15.1.3.2_A2.4_T1.js +++ b/test/suite/ch15/15.1/15.1.3/15.1.3.2/S15.1.3.2_A2.4_T1.js @@ -24,8 +24,10 @@ for (indexB1 = 0xE0; indexB1 <= 0xEF; indexB1++) { var hexB3 = decimalToHexString(indexB3); var index = (indexB1 & 0x0F) * 0x1000 + (indexB2 & 0x3F) * 0x40 + (indexB3 & 0x3F); try { - if (decodeURIComponent("%" + hexB1.substring(2) + "%" + hexB2.substring(2) + "%" + hexB3.substring(2)) === String.fromCharCode(index)) continue; - } catch (e) {} + if (decodeURIComponent("%" + hexB1.substring(2) + "%" + hexB2.substring(2) + "%" + hexB3.substring(2)) === String.fromCharCode(index)) continue;
+ } catch (e) {
+ if (e instanceof Test262Error) throw e; + } if (indexO === 0) { indexO = index; } else { diff --git a/test/suite/ch15/15.1/15.1.3/15.1.3.2/S15.1.3.2_A2.5_T1.js b/test/suite/ch15/15.1/15.1.3/15.1.3.2/S15.1.3.2_A2.5_T1.js index fcb428fc0..49f4a6c81 100644 --- a/test/suite/ch15/15.1/15.1.3/15.1.3.2/S15.1.3.2_A2.5_T1.js +++ b/test/suite/ch15/15.1/15.1.3/15.1.3.2/S15.1.3.2_A2.5_T1.js @@ -28,8 +28,10 @@ for (indexB1 = 0xF0; indexB1 <= 0xF4; indexB1++) { var L = ((index - 0x10000) & 0x03FF) + 0xDC00; var H = (((index - 0x10000) >> 10) & 0x03FF) + 0xD800; try { - if (decodeURIComponent("%" + hexB1.substring(3) + "%" + hexB2.substring(3) + "%" + hexB3.substring(3) + "%" + hexB4.substring(3)) === String.fromCharCode(H) + String.fromCharCode(L)) continue; - } catch (e) {} + if (decodeURIComponent("%" + hexB1.substring(3) + "%" + hexB2.substring(3) + "%" + hexB3.substring(3) + "%" + hexB4.substring(3)) === String.fromCharCode(H) + String.fromCharCode(L)) continue;
+ } catch (e) {
+ if (e instanceof Test262Error) throw e; + } if (indexO === 0) { indexO = index; } else { diff --git a/test/suite/ch15/15.11/15.11.4/S15.11.4_A3.js b/test/suite/ch15/15.11/15.11.4/S15.11.4_A3.js index 47c44d3df..6b39d0bca 100644 --- a/test/suite/ch15/15.11/15.11.4/S15.11.4_A3.js +++ b/test/suite/ch15/15.11/15.11.4/S15.11.4_A3.js @@ -12,8 +12,10 @@ //CHECK#1 try { Error.prototype(); - $FAIL('#1: "Error.prototype()" lead to throwing exception'); -} catch (e) {} + $FAIL('#1: "Error.prototype()" lead to throwing exception');
+} catch (e) {
+ if (e instanceof Test262Error) throw e; +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/suite/ch15/15.11/15.11.4/S15.11.4_A4.js b/test/suite/ch15/15.11/15.11.4/S15.11.4_A4.js index 5d73a72af..2b9dd3ce9 100644 --- a/test/suite/ch15/15.11/15.11.4/S15.11.4_A4.js +++ b/test/suite/ch15/15.11/15.11.4/S15.11.4_A4.js @@ -12,8 +12,10 @@ //CHECK#1 try { __instance = new Object.prototype; - $FAIL('#1: "__instance = new Object.prototype" lead to throwing exception'); -} catch (e) {} + $FAIL('#1: "__instance = new Object.prototype" lead to throwing exception');
+} catch (e) {
+ if (e instanceof Test262Error) throw e; +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/suite/ch15/15.5/15.5.3/S15.5.3.2_A4.js b/test/suite/ch15/15.5/15.5.3/S15.5.3.2_A4.js index 3e3ea5f72..fd9b0038e 100644 --- a/test/suite/ch15/15.5/15.5.3/S15.5.3.2_A4.js +++ b/test/suite/ch15/15.5/15.5.3/S15.5.3.2_A4.js @@ -16,8 +16,10 @@ delete String.fromCharCode; //CHECK#1 try { var __obj = new __fcc__func(65,66,66,65); - $FAIL('#1: __fcc__func = String.fromCharCode; var __obj = new __fcc__func(65,66,66,65) lead to throwing exception'); -} catch (e) {} + $FAIL('#1: __fcc__func = String.fromCharCode; var __obj = new __fcc__func(65,66,66,65) lead to throwing exception');
+} catch (e) {
+ if (e instanceof Test262Error) throw e; +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A7.js b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A7.js index b63618783..11b66aabb 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A7.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A7.js @@ -12,6 +12,8 @@ var __FACTORY = String.prototype.match; try { var __instance = new __FACTORY; - $FAIL('#1: __FACTORY = String.prototype.match; __FACTORY = String.prototype.match; __instance = new __FACTORY lead to throwing exception'); -} catch (e) {} + $FAIL('#1: __FACTORY = String.prototype.match; __FACTORY = String.prototype.match; __instance = new __FACTORY lead to throwing exception');
+} catch (e) {
+ if (e instanceof Test262Error) throw e; +} diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A7.js b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A7.js index 17e90a55d..987862d13 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A7.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A7.js @@ -12,6 +12,8 @@ var __FACTORY = String.prototype.replace; try { var __instance = new __FACTORY; - $FAIL('#1: __FACTORY = String.prototype.replace; "__instance = new __FACTORY" lead to throwing exception'); -} catch (e) {} + $FAIL('#1: __FACTORY = String.prototype.replace; "__instance = new __FACTORY" lead to throwing exception');
+} catch (e) {
+ if (e instanceof Test262Error) throw e; +} diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A7.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A7.js index bcc7e4033..10c5424aa 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A7.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A7.js @@ -12,6 +12,8 @@ var __FACTORY = String.prototype.split; try { var __instance = new __FACTORY; - $FAIL('#1: __FACTORY = String.prototype.split; "__instance = new __FACTORY" lead to throwing exception'); -} catch (e) {} + $FAIL('#1: __FACTORY = String.prototype.split; "__instance = new __FACTORY" lead to throwing exception');
+} catch (e) {
+ if (e instanceof Test262Error) throw e; +} diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A7.js b/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A7.js index ea51cd5b3..5a97c5746 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A7.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A7.js @@ -12,6 +12,8 @@ var __FACTORY = String.prototype.charCodeAt; try { var __instance = new __FACTORY; - $FAIL('#1: __FACTORY = String.prototype.charCodeAt; "__instance = new __FACTORY" lead to throwing exception'); -} catch (e) {} + $FAIL('#1: __FACTORY = String.prototype.charCodeAt; "__instance = new __FACTORY" lead to throwing exception');
+} catch (e) {
+ if (e instanceof Test262Error) throw e; +} diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A7.js b/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A7.js index e27f8a039..62267a230 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A7.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A7.js @@ -12,6 +12,8 @@ var __FACTORY = String.prototype.concat; try { var __instance = new __FACTORY; - $FAIL('#1: __FACTORY = String.prototype.concat; "__instance = new __FACTORY" lead throwing exception'); -} catch (e) {} + $FAIL('#1: __FACTORY = String.prototype.concat; "__instance = new __FACTORY" lead throwing exception');
+} catch (e) {
+ if (e instanceof Test262Error) throw e; +} diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.9/S15.5.4.9_A7.js b/test/suite/ch15/15.5/15.5.4/15.5.4.9/S15.5.4.9_A7.js index 349c8b655..42ef95947 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.9/S15.5.4.9_A7.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.9/S15.5.4.9_A7.js @@ -12,6 +12,8 @@ var __FACTORY = String.prototype.localeCompare; try { var __instance = new __FACTORY; - $FAIL('#1: __FACTORY = String.prototype.localeCompare; __instance = new __FACTORY lead to throwing exception'); -} catch (e) {} + $FAIL('#1: __FACTORY = String.prototype.localeCompare; __instance = new __FACTORY lead to throwing exception');
+} catch (e) {
+ if (e instanceof Test262Error) throw e; +} |