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: The length property of the Math.min method is 2
|
2014-07-25 00:41:42 +02:00
|
|
|
es5id: 15.8.2.12_A4
|
2014-07-22 01:09:02 +02:00
|
|
|
description: Checking if Math.min.length property is defined and equals to 2
|
|
|
|
---*/
|
2011-09-07 08:35:18 +02:00
|
|
|
|
|
|
|
// CHECK#1
|
|
|
|
if (typeof Math.min !== "function") {
|
2021-07-21 21:10:32 +02:00
|
|
|
throw new Test262Error('#1: Math.min method is not defined');
|
2011-09-07 08:35:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// CHECK#2
|
|
|
|
if (typeof Math.min.length === "undefined") {
|
2021-07-21 21:10:32 +02:00
|
|
|
throw new Test262Error('#2: length property of Math.min method is undefined');
|
2011-09-07 08:35:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// CHECK#3
|
|
|
|
if (Math.min.length !== 2) {
|
2021-07-21 21:10:32 +02:00
|
|
|
throw new Test262Error('#3: The length property of the Math.min method is not 2');
|
2011-09-07 08:35:18 +02:00
|
|
|
}
|