| 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() { | 8 (function() { |
| 9 | 9 |
| 10 "use strict"; | 10 "use strict"; |
| (...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 }; | 349 }; |
| 350 var string = ToString(component); | 350 var string = ToString(component); |
| 351 return Encode(string, unescapePredicate); | 351 return Encode(string, unescapePredicate); |
| 352 } | 352 } |
| 353 | 353 |
| 354 // ------------------------------------------------------------------- | 354 // ------------------------------------------------------------------- |
| 355 // Install exported functions. | 355 // Install exported functions. |
| 356 | 356 |
| 357 // Set up non-enumerable URI functions on the global object and set | 357 // Set up non-enumerable URI functions on the global object and set |
| 358 // their names. | 358 // their names. |
| 359 InstallFunctions(global, DONT_ENUM, [ | 359 $installFunctions(global, DONT_ENUM, [ |
| 360 "escape", URIEscapeJS, | 360 "escape", URIEscapeJS, |
| 361 "unescape", URIUnescapeJS, | 361 "unescape", URIUnescapeJS, |
| 362 "decodeURI", URIDecode, | 362 "decodeURI", URIDecode, |
| 363 "decodeURIComponent", URIDecodeComponent, | 363 "decodeURIComponent", URIDecodeComponent, |
| 364 "encodeURI", URIEncode, | 364 "encodeURI", URIEncode, |
| 365 "encodeURIComponent", URIEncodeComponent | 365 "encodeURIComponent", URIEncodeComponent |
| 366 ]); | 366 ]); |
| 367 | 367 |
| 368 })(); | 368 })(); |
| OLD | NEW |