minuszero.js revision 6:5a1b0714df0e
117749Spst/* 217749Spst * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved. 317749Spst * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 417749Spst * 517749Spst * This code is free software; you can redistribute it and/or modify it 617749Spst * under the terms of the GNU General Public License version 2 only, as 717749Spst * published by the Free Software Foundation. 817749Spst * 917749Spst * This code is distributed in the hope that it will be useful, but WITHOUT 1017749Spst * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1117749Spst * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1217749Spst * version 2 for more details (a copy is included in the LICENSE file that 1317749Spst * accompanied this code). 1417749Spst * 1517749Spst * You should have received a copy of the GNU General Public License version 1617749Spst * 2 along with this work; if not, write to the Free Software Foundation, 1717749Spst * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18214518Srpaulo * 1917749Spst * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2017749Spst * or visit www.oracle.com if you need additional information or have any 2117749Spst * questions. 2217749Spst */ 2317749Spst 2417749Spst/** 2517749Spst * Tests with -0 2617749Spst * 2717749Spst * @test 2817749Spst * @run 2917749Spst */ 3017749Spst 3117749Spstvar mz = -0; 3217749Spstprint(mz); 3317749Spstprint(mz === -0); 3417749Spstprint(1/mz); 3517749Spst 3617749Spstvar obj = {}; 3717749Spstobj.length = -0; 38127667Sbmsprint(obj.length); 39127667Sbmsprint(obj.length === -0); 40127667Sbmsprint(1/obj.length); 41127667Sbms 42127667Sbms