| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // This file contains support for URI manipulations written in | 5 // This file contains support for URI manipulations written in |
| 6 // JavaScript. | 6 // JavaScript. |
| 7 | 7 |
| 8 (function(global, utils) { | 8 (function(global, utils) { |
| 9 | 9 |
| 10 "use strict"; | 10 "use strict"; |
| (...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 353 }; | 353 }; |
| 354 var string = $toString(component); | 354 var string = $toString(component); |
| 355 return Encode(string, unescapePredicate); | 355 return Encode(string, unescapePredicate); |
| 356 } | 356 } |
| 357 | 357 |
| 358 // ------------------------------------------------------------------- | 358 // ------------------------------------------------------------------- |
| 359 // Install exported functions. | 359 // Install exported functions. |
| 360 | 360 |
| 361 // Set up non-enumerable URI functions on the global object and set | 361 // Set up non-enumerable URI functions on the global object and set |
| 362 // their names. | 362 // their names. |
| 363 utils.InstallFunctions(global, DONT_ENUM, [ | 363 $installFunctions(global, DONT_ENUM, [ |
| 364 "escape", URIEscapeJS, | 364 "escape", URIEscapeJS, |
| 365 "unescape", URIUnescapeJS, | 365 "unescape", URIUnescapeJS, |
| 366 "decodeURI", URIDecode, | 366 "decodeURI", URIDecode, |
| 367 "decodeURIComponent", URIDecodeComponent, | 367 "decodeURIComponent", URIDecodeComponent, |
| 368 "encodeURI", URIEncode, | 368 "encodeURI", URIEncode, |
| 369 "encodeURIComponent", URIEncodeComponent | 369 "encodeURIComponent", URIEncodeComponent |
| 370 ]); | 370 ]); |
| 371 | 371 |
| 372 }) | 372 }) |
| OLD | NEW |