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); |