test262/test/built-ins/Math/max/S15.8.2.11_A4.js
André Bargull f95b56ab28 Revert "js-beautify: make all indentation consistent (depth & character) (#1409)" (#1412)
This reverts commit a01de4a722d088055a7d84d8c691ddd7109edb34.
2018-02-09 12:09:47 -05:00

24 lines
630 B
JavaScript

// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: The length property of the Math.max method is 2
es5id: 15.8.2.11_A4
description: Checking if Math.max.length property is defined and equals to 2
---*/
// CHECK#1
if (typeof Math.max !== "function") {
$ERROR('#1: Math.max method is not defined');
}
// CHECK#2
if (typeof Math.max.length === "undefined") {
$ERROR('#2: length property of Math.max method is undefined');
}
// CHECK#3
if (Math.max.length !== 2) {
$ERROR('#3: The length property of the Math.max method is not 2');
}