mirror of
https://github.com/tc39/test262.git
synced 2025-08-27 04:48:32 +02:00
17 lines
638 B
JavaScript
17 lines
638 B
JavaScript
// Copyright 2009 the Sputnik authors. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/**
|
|
* Check type of various properties
|
|
*
|
|
* @path annexB/B.2.6.propertyCheck.js
|
|
* @description Checking properties of the Date object (toGMTString)
|
|
*/
|
|
|
|
if (typeof Date.prototype.toGMTString !== "function") $ERROR('#1: typeof Date.prototype.toGMTString === "function". Actual: ' + (typeof Date.prototype.toGMTString ));
|
|
if (typeof Date.prototype['toGMTString'] !== "function") $ERROR('#2: typeof Date.prototype["toGMTString"] === "function". Actual: ' + (typeof Date.prototype["toGMTString"] ));
|
|
|
|
|
|
|
|
|