Index: src/string.js |
diff --git a/src/string.js b/src/string.js |
index e6671eec17d991ce8d4a5ae9a8e800bd76f8ead6..039a2b8d54ba7f7b291c0076c2b83b985e7e48cc 100644 |
--- a/src/string.js |
+++ b/src/string.js |
@@ -18,7 +18,6 @@ var InternalPackedArray = utils.InternalPackedArray; |
var RegExpExec; |
var RegExpExecNoTests; |
var RegExpLastMatchInfo; |
-var SymbolToString; |
var ToNumber; |
var ToString; |
@@ -28,26 +27,12 @@ utils.Import(function(from) { |
RegExpExec = from.RegExpExec; |
RegExpExecNoTests = from.RegExpExecNoTests; |
RegExpLastMatchInfo = from.RegExpLastMatchInfo; |
- SymbolToString = from.SymbolToString; |
ToNumber = from.ToNumber; |
ToString = from.ToString; |
}); |
//------------------------------------------------------------------- |
-function StringConstructor(x) { |
- // TODO(bmeurer): Move this to toplevel. |
- "use strict"; |
- if (%_ArgumentsLength() == 0) x = ''; |
- if (%_IsConstructCall()) { |
- %_SetValueOf(this, TO_STRING_INLINE(x)); |
- } else { |
- return IS_SYMBOL(x) ? |
- %_CallFunction(x, SymbolToString) : TO_STRING_INLINE(x); |
- } |
-} |
- |
- |
// ECMA-262 section 15.5.4.2 |
function StringToString() { |
if (!IS_STRING(this) && !IS_STRING_WRAPPER(this)) { |
@@ -1151,7 +1136,6 @@ function StringRaw(callSite) { |
// ------------------------------------------------------------------- |
// Set the String function and constructor. |
-%SetCode(GlobalString, StringConstructor); |
%FunctionSetPrototype(GlobalString, new GlobalString()); |
// Set up the constructor property on the String prototype object. |