1 /* -*- Mode: java; tab-width:8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * Any copyright is dedicated to the Public Domain.
4 * http://creativecommons.org/licenses/publicdomain/
5 * Contributor: Blake Kaplan
8 //-----------------------------------------------------------------------------
9 var BUGNUMBER = 530537;
10 var summary = 'Decompilation of JSOP_CONCATN with a ternary operator';
15 //-----------------------------------------------------------------------------
17 //-----------------------------------------------------------------------------
22 printBugNumber(BUGNUMBER);
23 printStatus (summary);
25 // NB: Control: test JSOP_ADD first.
26 var f = function (b) { dump((b ? "yes" : "no") + "_bye"); }
27 expect = 'function (b) { dump((b ? "yes" : "no") + "_bye"); }';
30 compareSource(expect, actual, summary.replace("ternary", "plus"));
32 var f = function (b) { dump("hi_" + (b ? "yes" : "no") + "_bye"); }
33 expect = 'function (b) { dump("hi_" + (b ? "yes" : "no") + "_bye"); }';
36 compareSource(expect, actual, summary);