2011-09-07 08:35:18 +02:00
|
|
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
|
2014-07-22 01:09:02 +02:00
|
|
|
/*---
|
2018-01-05 18:26:51 +01:00
|
|
|
info: |
|
2014-07-22 01:09:02 +02:00
|
|
|
If multi line comments csn not nest, they can contain any Unicode
|
|
|
|
character
|
2014-07-25 00:41:42 +02:00
|
|
|
es5id: 7.4_A6
|
2014-07-22 01:09:02 +02:00
|
|
|
description: "\"var\"+ yy+ \"xx = 1\", insert instead of yy all Unicode characters"
|
2021-09-01 23:26:54 +02:00
|
|
|
includes: [decimalToHexString.js]
|
2014-07-22 01:09:02 +02:00
|
|
|
---*/
|
2011-09-07 08:35:18 +02:00
|
|
|
|
2011-09-14 07:37:44 +02:00
|
|
|
for (var indexI = 0; indexI <= 65535; indexI++) {
|
2011-09-07 08:35:18 +02:00
|
|
|
try {
|
2011-09-14 07:37:44 +02:00
|
|
|
var xx = 0;
|
2011-09-07 08:35:18 +02:00
|
|
|
eval("/*var " + String.fromCharCode(indexI) + "xx = 1*/");
|
2021-09-01 23:33:23 +02:00
|
|
|
var differs = xx !== 0;
|
2011-09-07 08:35:18 +02:00
|
|
|
} catch (e){
|
2021-09-01 23:33:23 +02:00
|
|
|
throw new Test262Error('#' + decimalToHexString(indexI) + ' throws');
|
|
|
|
}
|
|
|
|
if (differs) {
|
|
|
|
throw new Test262Error('#' + decimalToHexString(indexI) + ' differs');
|
2011-09-07 08:35:18 +02:00
|
|
|
}
|
|
|
|
}
|