lagergren@13: /* lagergren@13: * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved. lagergren@13: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. attila@962: * lagergren@13: * This code is free software; you can redistribute it and/or modify it lagergren@13: * under the terms of the GNU General Public License version 2 only, as lagergren@13: * published by the Free Software Foundation. attila@962: * lagergren@13: * This code is distributed in the hope that it will be useful, but WITHOUT lagergren@13: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or lagergren@13: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License lagergren@13: * version 2 for more details (a copy is included in the LICENSE file that lagergren@13: * accompanied this code). attila@962: * lagergren@13: * You should have received a copy of the GNU General Public License version lagergren@13: * 2 along with this work; if not, write to the Free Software Foundation, lagergren@13: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. attila@962: * lagergren@13: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA lagergren@13: * or visit www.oracle.com if you need additional information or have any lagergren@13: * questions. lagergren@13: */ lagergren@13: lagergren@13: /** lagergren@13: * NASHORN-837 : refSymbol lookup caused nullpointer exception in Lower lagergren@13: * lagergren@13: * @test lagergren@13: * @run lagergren@13: */ lagergren@13: lagergren@13: try { attila@144: throw new TypeError('error'); attila@144: } catch (iox) { attila@144: var f = function() { attila@144: if(iox.message != 'error') { attila@144: print("Failure! iox did not throw correct exception"); attila@144: } lagergren@13: } lagergren@13: } attila@144: f();