| Index: src/win32-math.h
|
| diff --git a/test/mjsunit/regress/regress-1110.js b/src/win32-math.h
|
| similarity index 69%
|
| copy from test/mjsunit/regress/regress-1110.js
|
| copy to src/win32-math.h
|
| index 204a87ba3d16743a945fb2fb5817538fd43e7315..68759990b4307b5f40f0b528afbddfe5cea6c43b 100644
|
| --- a/test/mjsunit/regress/regress-1110.js
|
| +++ b/src/win32-math.h
|
| @@ -25,14 +25,37 @@
|
| // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
| -// Test that the illegal continue is thrown at parse time.
|
| -
|
| -try {
|
| - function Crash() { continue;if (Crash) {
|
| - } }
|
| - Crash();
|
| - assertTrue(false);
|
| -} catch (e) {
|
| - assertTrue(e instanceof SyntaxError);
|
| - assertTrue(/continue/.test(e.message));
|
| -}
|
| +// Extra POSIX/ANSI routines for Win32 when using Visual Studio C++. Please
|
| +// refer to The Open Group Base Specification for specification of the correct
|
| +// semantics for these functions.
|
| +// (http://www.opengroup.org/onlinepubs/000095399/)
|
| +
|
| +#ifndef V8_WIN32_MATH_H_
|
| +#define V8_WIN32_MATH_H_
|
| +
|
| +#ifndef _MSC_VER
|
| +#error Wrong environment, expected MSVC.
|
| +#endif // _MSC_VER
|
| +
|
| +enum {
|
| + FP_NAN,
|
| + FP_INFINITE,
|
| + FP_ZERO,
|
| + FP_SUBNORMAL,
|
| + FP_NORMAL
|
| +};
|
| +
|
| +namespace v8 {
|
| +
|
| +int isfinite(double x);
|
| +
|
| +} // namespace v8
|
| +
|
| +int isnan(double x);
|
| +int isinf(double x);
|
| +int isless(double x, double y);
|
| +int isgreater(double x, double y);
|
| +int fpclassify(double x);
|
| +int signbit(double x);
|
| +
|
| +#endif // V8_WIN32_MATH_H_
|
|
|