diff options
Diffstat (limited to 'test/suite/ch15/15.1/15.1.3/15.1.3.1/S15.1.3.1_A2.5_T1.js')
-rw-r--r-- | test/suite/ch15/15.1/15.1.3/15.1.3.1/S15.1.3.1_A2.5_T1.js | 6 |
1 files changed, 4 insertions, 2 deletions
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 { |