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

Unified Diff: src/runtime.js

Issue 1224523002: Avoid converting key to string for deleting of elements (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 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') | src/runtime/runtime.h » ('j') | src/v8natives.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/runtime.js
diff --git a/src/runtime.js b/src/runtime.js
index 00b57612e828a1601337a9a45b26288fc79e751e..d307c4855fc0c8fe2574e3dc0802f6eafe1ceb17 100644
--- a/src/runtime.js
+++ b/src/runtime.js
@@ -509,7 +509,7 @@ SHR_STRONG = function SHR_STRONG(y) {
// ECMA-262, section 11.4.1, page 46.
DELETE = function DELETE(key, language_mode) {
- return %DeleteProperty(%$toObject(this), %$toName(key), language_mode);
+ return %DeleteProperty(%$toObject(this), key, language_mode);
}
« no previous file with comments | « src/objects.cc ('k') | src/runtime/runtime.h » ('j') | src/v8natives.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698