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

Unified Diff: src/objects-inl.h

Issue 1365503005: [es6] Fix invalid ToString in implementation of ToName. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Meh! Created 5 years, 3 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/objects.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects-inl.h
diff --git a/src/objects-inl.h b/src/objects-inl.h
index 2efd7ef6597a5e9cb174a9a2301eb6898a3ec28d..3fe65c4c15040dd73f6acad1b66af87c4ec1c9f2 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -1146,13 +1146,6 @@ MaybeHandle<JSReceiver> Object::ToObject(Isolate* isolate,
// static
-MaybeHandle<Name> Object::ToName(Isolate* isolate, Handle<Object> input) {
- if (input->IsName()) return Handle<Name>::cast(input);
- return ToString(isolate, input);
-}
-
-
-// static
MaybeHandle<Object> Object::ToPrimitive(Handle<Object> input,
ToPrimitiveHint hint) {
if (input->IsPrimitive()) return input;
« no previous file with comments | « src/objects.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698