1
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2
* vim: set ts=8 sts=4 et sw=4 tw=99:
4
/* This Source Code Form is subject to the terms of the Mozilla Public
5
* License, v. 2.0. If a copy of the MPL was not distributed with this
6
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
11
BEGIN_TEST(selfTest_NaNsAreSame)
13
JS::RootedValue v1(cx), v2(cx);
14
EVAL("0/0", v1.address()); // NaN
17
EVAL("Math.sin('no')", v2.address()); // also NaN
21
END_TEST(selfTest_NaNsAreSame)
23
BEGIN_TEST(selfTest_globalHasNoParent)
25
CHECK(JS_GetParent(global) == NULL);
28
END_TEST(selfTest_globalHasNoParent)