Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1505)

Unified Diff: src/uri.js

Issue 1302533002: Native context: debug.js does not load from js builtins object anymore. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: make importing requirement more explicit Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/typedarray.js ('k') | src/v8natives.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/uri.js
diff --git a/src/uri.js b/src/uri.js
index 4566a7cc96338e79c5c2c359b8e891964f17486d..bf3270f1d061dc8f63e1f4397a9288ee64f47532 100644
--- a/src/uri.js
+++ b/src/uri.js
@@ -17,6 +17,11 @@
var GlobalObject = global.Object;
var GlobalArray = global.Array;
var InternalArray = utils.InternalArray;
+var ToString;
+
+utils.Import(function(from) {
+ ToString = from.ToString;
+});
// -------------------------------------------------------------------
// Define internal helper functions.
@@ -274,13 +279,13 @@ function Decode(uri, reserved) {
// ECMA-262 - B.2.1.
function URIEscapeJS(str) {
- var s = $toString(str);
+ var s = ToString(str);
return %URIEscape(s);
}
// ECMA-262 - B.2.2.
function URIUnescapeJS(str) {
- var s = $toString(str);
+ var s = ToString(str);
return %URIUnescape(s);
}
@@ -304,14 +309,14 @@ function URIDecode(uri) {
return false;
};
- var string = $toString(uri);
+ var string = ToString(uri);
return Decode(string, reservedPredicate);
}
// ECMA-262 - 15.1.3.2.
function URIDecodeComponent(component) {
var reservedPredicate = function(cc) { return false; };
- var string = $toString(component);
+ var string = ToString(component);
return Decode(string, reservedPredicate);
}
@@ -338,7 +343,7 @@ function URIEncode(uri) {
return false;
};
- var string = $toString(uri);
+ var string = ToString(uri);
return Encode(string, unescapePredicate);
}
@@ -359,7 +364,7 @@ function URIEncodeComponent(component) {
return false;
};
- var string = $toString(component);
+ var string = ToString(component);
return Encode(string, unescapePredicate);
}
« no previous file with comments | « src/typedarray.js ('k') | src/v8natives.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698