[JSC] Do not use asArrayModes() with Structures because it discards TypedArray inform...
[WebKit-https.git] / JSTests / stress / encode-decode-ascii.js
1 function shouldBe(actual, expected) {
2     if (actual !== expected)
3         throw new Error('bad value: ' + actual);
4 }
5
6 for (var i = 0; i < 256; ++i) {
7     var ch = String.fromCharCode(i);
8     shouldBe(decodeURIComponent(encodeURIComponent(ch)), ch);
9     shouldBe(decodeURI(encodeURI(ch)), ch);
10     shouldBe(unescape(escape(ch)), ch);
11 }