mirror of
https://github.com/tc39/test262.git
synced 2025-08-27 12:58:24 +02:00
16 lines
609 B
JavaScript
16 lines
609 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.5.propertyCheck.js
|
|
* @description Checking properties of the Date object (setYear)
|
|
*/
|
|
|
|
if (typeof Date.prototype.setYear !== "function") $ERROR('#1: typeof Date.prototype.setYear === "function". Actual: ' + (typeof Date.prototype.setYear ));
|
|
if (typeof Date.prototype['setYear'] !== "function") $ERROR('#2: typeof Date.prototype["setYear"] === "function". Actual: ' + (typeof Date.prototype["setYear"] ));
|
|
|
|
|
|
|