Index: src/date.js |
diff --git a/src/date.js b/src/date.js |
index 44d2f4df1639044f19958d914c858bdc87760508..5df3afa98b7d5207c86c525f83070ad4c12919c3 100644 |
--- a/src/date.js |
+++ b/src/date.js |
@@ -21,6 +21,7 @@ var IsFinite; |
var MathAbs; |
var MathFloor; |
var ToNumber; |
+var toPrimitiveSymbol = utils.ImportNow("to_primitive_symbol"); |
var ToString; |
utils.Import(function(from) { |
@@ -847,8 +848,8 @@ utils.InstallFunctions(GlobalDate, DONT_ENUM, [ |
// Set up non-enumerable constructor property of the Date prototype object. |
%AddNamedProperty(GlobalDate.prototype, "constructor", GlobalDate, DONT_ENUM); |
-utils.SetFunctionName(DateToPrimitive, symbolToPrimitive); |
-%AddNamedProperty(GlobalDate.prototype, symbolToPrimitive, DateToPrimitive, |
+utils.SetFunctionName(DateToPrimitive, toPrimitiveSymbol); |
+%AddNamedProperty(GlobalDate.prototype, toPrimitiveSymbol, DateToPrimitive, |
DONT_ENUM | READ_ONLY); |
// Set up non-enumerable functions of the Date prototype object and |