test262/test/built-ins/Math/atan2/S15.8.2.5_A5.js
André Bargull 76a7c8107b Fix strict mode errors in built-ins/Math
Add missing "var" declarations.

Part of issue #35.
2015-04-29 17:40:30 +02:00

15 lines
410 B
JavaScript

// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: If y is +0 and x is +0, Math.atan2(y,x) is +0
es5id: 15.8.2.5_A5
description: Checking if Math.atan2(y,x) is +0, where y is +0 and x is +0
---*/
// CHECK#1
var y = +0;
var x = +0;
if (Math.atan2(y,x) !== +0)
$ERROR("#1: Math.atan2(" + y + ", " + x + ") !== +0");