2011-09-07 08:35:18 +02:00
|
|
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
|
2014-07-22 01:09:02 +02:00
|
|
|
/*---
|
|
|
|
info: Check type of various properties
|
2014-07-25 00:41:42 +02:00
|
|
|
es5id: 11.2.1_A4_T3
|
2014-07-22 01:09:02 +02:00
|
|
|
description: Checking properties of the Function object
|
|
|
|
---*/
|
2011-09-07 08:35:18 +02:00
|
|
|
|
|
|
|
//CHECK#1-8
|
2021-07-28 22:48:39 +02:00
|
|
|
if (typeof Function.prototype !== "function") throw new Test262Error('#1: typeof Function.prototype === "function". Actual: ' + (typeof Function.prototype ));
|
|
|
|
if (typeof Function['prototype'] !== "function") throw new Test262Error('#2: typeof Function["prototype"] === "function". Actual: ' + (typeof Function["prototype"] ));
|
|
|
|
if (typeof Function.prototype.toString !== "function") throw new Test262Error('#3: typeof Function.prototype.toString === "function". Actual: ' + (typeof Function.prototype.toString ));
|
|
|
|
if (typeof Function.prototype['toString'] !== "function") throw new Test262Error('#4: typeof Function.prototype["toString"] === "function". Actual: ' + (typeof Function.prototype["toString"] ));
|
|
|
|
if (typeof Function.prototype.length !== "number") throw new Test262Error('#5: typeof Function.prototype.length === "number". Actual: ' + (typeof Function.prototype.length ));
|
|
|
|
if (typeof Function.prototype['length'] !== "number") throw new Test262Error('#6: typeof Function.prototype["length"] === "number". Actual: ' + (typeof Function.prototype["length"] ));
|
|
|
|
if (typeof Function.prototype.valueOf !== "function") throw new Test262Error('#7: typeof Function.prototype.valueOf === "function". Actual: ' + (typeof Function.prototype.valueOf ));
|
|
|
|
if (typeof Function.prototype['valueOf'] !== "function") throw new Test262Error('#8: typeof Function.prototype["valueOf"] === "function". Actual: ' + (typeof Function.prototype["valueOf"] ));
|