util.js revision 877:cf4d2252d444
154359Sroberto/* 254359Sroberto * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved. 354359Sroberto * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 454359Sroberto * 554359Sroberto * This code is free software; you can redistribute it and/or modify it 6290000Sglebius * under the terms of the GNU General Public License version 2 only, as 7290000Sglebius * published by the Free Software Foundation. 854359Sroberto * 954359Sroberto * This code is distributed in the hope that it will be useful, but WITHOUT 1054359Sroberto * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1154359Sroberto * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1254359Sroberto * version 2 for more details (a copy is included in the LICENSE file that 13290000Sglebius * accompanied this code). 14290000Sglebius * 15132451Sroberto * You should have received a copy of the GNU General Public License version 1654359Sroberto * 2 along with this work; if not, write to the Free Software Foundation, 1754359Sroberto * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 1854359Sroberto * 1954359Sroberto * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2054359Sroberto * or visit www.oracle.com if you need additional information or have any 2154359Sroberto * questions. 2254359Sroberto */ 2354359Sroberto 2454359Sroberto/** 2554359Sroberto * @subtest 2654359Sroberto */ 2754359Sroberto 2854359Sroberto// utilitity for parser tests 2954359Sroberto 3054359Srobertoload("nashorn:parser.js"); 3154359Srobertofunction printParse(code) { 32290000Sglebius print(JSON.stringify(parse(code), null, ' ')); 3354359Sroberto} 3454359Sroberto