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

Unified Diff: src/harmony-tostring.js

Issue 1072083002: [es6] don't "replace" Object.prototype.toString for --harmony-tostring (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Final fixup... 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/bootstrapper.cc ('k') | src/heap/heap.h » ('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 4f4f986fd26bc904f45c92c2b202732d0a4cf709..0c3f3ca9e21ec8b168c53a6d2922fa8cc45be8fb 100644
--- a/src/harmony-tostring.js
+++ b/src/harmony-tostring.js
@@ -32,23 +32,3 @@ function HarmonyToStringExtendSymbolPrototype() {
}
HarmonyToStringExtendSymbolPrototype();
-
-function HarmonyToStringExtendObjectPrototype() {
- %CheckIsBootstrapping();
-
- // Can't use InstallFunctions() because will fail in Debug mode.
- // Emulate InstallFunctions() here.
- %FunctionSetName(ObjectToStringHarmony, "toString");
- %FunctionRemovePrototype(ObjectToStringHarmony);
- %SetNativeFlag(ObjectToStringHarmony);
-
- // Set up the non-enumerable functions on the Array prototype object.
- var desc = ToPropertyDescriptor({
- value: ObjectToStringHarmony
- });
- DefineOwnProperty($Object.prototype, "toString", desc, false);
-
- %ToFastProperties($Object.prototype);
-}
-
-HarmonyToStringExtendObjectPrototype();
« no previous file with comments | « src/bootstrapper.cc ('k') | src/heap/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698