Index: src/string.js |
diff --git a/src/string.js b/src/string.js |
index 07cdcc043f02c1eeaca0cca4fb2698a43881d544..47b2be8b67120d24a21e9941a0ad4469d2440908 100644 |
--- a/src/string.js |
+++ b/src/string.js |
@@ -915,7 +915,7 @@ function SetUpString() { |
%FunctionSetPrototype($String, new $String()); |
// Set up the constructor property on the String prototype object. |
- %SetProperty($String.prototype, "constructor", $String, DONT_ENUM); |
+ %DefineProperty($String.prototype, "constructor", $String, DONT_ENUM); |
// Set up the non-enumerable functions on the String object. |
InstallFunctions($String, DONT_ENUM, $Array( |