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

Unified Diff: src/js/prologue.js

Issue 2109223002: [intl] Clean up function name handling in AddBoundMethod (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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
Index: src/js/prologue.js
diff --git a/src/js/prologue.js b/src/js/prologue.js
index 79fe9b7726ed29e4cf6012b3d3ee2a57996bd0b6..0f9e990733cbe01d4e3b97d6b0b443b52c5301ee 100644
--- a/src/js/prologue.js
+++ b/src/js/prologue.js
@@ -102,10 +102,12 @@ function InstallFunctions(object, attributes, functions) {
// Helper function to install a getter-only accessor property.
-function InstallGetter(object, name, getter, attributes, prefix) {
+function InstallGetter(object, name, getter, attributes, skipSetFunctionName) {
%CheckIsBootstrapping();
if (IS_UNDEFINED(attributes)) attributes = DONT_ENUM;
- SetFunctionName(getter, name, IS_UNDEFINED(prefix) ? "get" : prefix);
+ if (IS_UNDEFINED(skipSetFunctionName)) {
+ SetFunctionName(getter, name, "get");
+ }
%FunctionRemovePrototype(getter);
%DefineGetterPropertyUnchecked(object, name, getter, attributes);
%SetNativeFlag(getter);
« src/js/i18n.js ('K') | « src/js/macros.py ('k') | test/test262/test262.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698