diff options
Diffstat (limited to 'deps/v8/src/date.js')
-rw-r--r-- | deps/v8/src/date.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/deps/v8/src/date.js b/deps/v8/src/date.js index 2a445979e..87c87bfda 100644 --- a/deps/v8/src/date.js +++ b/deps/v8/src/date.js @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +"use strict"; + // This file relies on the fact that the following declarations have been made // in v8natives.js: // var $isFinite = GlobalIsFinite; @@ -761,7 +763,7 @@ function SetUpDate() { )); // Set up non-enumerable constructor property of the Date prototype object. - %SetProperty($Date.prototype, "constructor", $Date, DONT_ENUM); + %AddNamedProperty($Date.prototype, "constructor", $Date, DONT_ENUM); // Set up non-enumerable functions of the Date prototype object and // set their names. |