michael@0: /* michael@0: * Any copyright is dedicated to the Public Domain. michael@0: * http://creativecommons.org/licenses/publicdomain/ michael@0: */ michael@0: function roundTrip(f) { michael@0: try { michael@0: eval(uneval(f)); michael@0: return true; michael@0: } catch (e) { michael@0: return '' + e; michael@0: } michael@0: } michael@0: michael@0: function f() { if (true) { 'use strict'; } var eval; } michael@0: assertEq(roundTrip(f), true); michael@0: michael@0: reportCompare(true,true);