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

Unified Diff: src/harmony-tostring.js

Issue 1052963004: [cleanup] delete dead code leftover from 48eff34 (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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/array.js ('k') | src/messages.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/harmony-tostring.js
diff --git a/src/harmony-tostring.js b/src/harmony-tostring.js
index 0c3f3ca9e21ec8b168c53a6d2922fa8cc45be8fb..ccd02ca6c9e3cd8b97288a0723d2c38ef50475e3 100644
--- a/src/harmony-tostring.js
+++ b/src/harmony-tostring.js
@@ -4,24 +4,6 @@
"use strict";
-// This file relies on the fact that the following declaration has been made
-// in runtime.js and symbol.js:
-// var $Object = global.Object;
-
-DefaultObjectToString = ObjectToStringHarmony;
-// ES6 draft 08-24-14, section 19.1.3.6
-function ObjectToStringHarmony() {
- if (IS_UNDEFINED(this) && !IS_UNDETECTABLE(this)) return "[object Undefined]";
- if (IS_NULL(this)) return "[object Null]";
- var O = ToObject(this);
- var builtinTag = %_ClassOf(O);
- var tag = O[symbolToStringTag];
- if (!IS_STRING(tag)) {
- tag = builtinTag;
- }
- return "[object " + tag + "]";
-}
-
function HarmonyToStringExtendSymbolPrototype() {
%CheckIsBootstrapping();
« no previous file with comments | « src/array.js ('k') | src/messages.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698