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

Unified Diff: src/v8natives.js

Issue 1106713002: Revert of [es6] Map/Set size getter should have "get size" name (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/runtime/runtime-function.cc ('k') | test/mjsunit/es6/built-in-accessor-names.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/v8natives.js
diff --git a/src/v8natives.js b/src/v8natives.js
index 33f0c8bd03590032930b4dc8e28bc4e9a302a74f..41453d0b5364660c24f8cd9a51c93a9e71de6ffd 100644
--- a/src/v8natives.js
+++ b/src/v8natives.js
@@ -46,8 +46,7 @@
if (typeof attributes == "undefined") {
attributes = DONT_ENUM;
}
- %FunctionSetName(getter, "get " +
- (IS_SYMBOL(name) ? "[" + %SymbolDescription(name) + "]" : name));
+ %FunctionSetName(getter, name);
%FunctionRemovePrototype(getter);
%DefineAccessorPropertyUnchecked(object, name, getter, null, attributes);
%SetNativeFlag(getter);
@@ -56,10 +55,8 @@
// Helper function to install a getter/setter accessor property.
function InstallGetterSetter(object, name, getter, setter) {
- var functionName =
- IS_SYMBOL(name) ? "[" + %SymbolDescription(name) + "]" : name;
- %FunctionSetName(getter, "get " + functionName);
- %FunctionSetName(setter, "set " + functionName);
+ %FunctionSetName(getter, name);
+ %FunctionSetName(setter, name);
%FunctionRemovePrototype(getter);
%FunctionRemovePrototype(setter);
%DefineAccessorPropertyUnchecked(object, name, getter, setter, DONT_ENUM);
« no previous file with comments | « src/runtime/runtime-function.cc ('k') | test/mjsunit/es6/built-in-accessor-names.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698