diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2011-07-08 16:40:11 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2011-07-08 16:40:11 -0700 |
commit | e5564a3f29e0a818832a97c7c3b28d7c8b3b0460 (patch) | |
tree | 4b48a6577080d5e44da4d2cbebb7fe7951660de8 /deps/v8/src/uri.js | |
parent | 0df2f74d364826053641395b01c2fcb1345057a9 (diff) | |
download | node-new-e5564a3f29e0a818832a97c7c3b28d7c8b3b0460.tar.gz |
Upgrade V8 to 3.4.10
Diffstat (limited to 'deps/v8/src/uri.js')
-rw-r--r-- | deps/v8/src/uri.js | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/deps/v8/src/uri.js b/deps/v8/src/uri.js index e94b3fe56a..72ca6f1565 100644 --- a/deps/v8/src/uri.js +++ b/deps/v8/src/uri.js @@ -166,7 +166,10 @@ function URIDecodeOctets(octets, result, index) { // ECMA-262, section 15.1.3 function Encode(uri, unescape) { var uriLength = uri.length; - var result = new $Array(uriLength); + // We are going to pass result to %StringFromCharCodeArray + // which does not expect any getters/setters installed + // on the incoming array. + var result = new InternalArray(uriLength); var index = 0; for (var k = 0; k < uriLength; k++) { var cc1 = uri.charCodeAt(k); @@ -192,7 +195,10 @@ function Encode(uri, unescape) { // ECMA-262, section 15.1.3 function Decode(uri, reserved) { var uriLength = uri.length; - var result = new $Array(uriLength); + // We are going to pass result to %StringFromCharCodeArray + // which does not expect any getters/setters installed + // on the incoming array. + var result = new InternalArray(uriLength); var index = 0; for (var k = 0; k < uriLength; k++) { var ch = uri.charAt(k); |