michael@0: // Bug 791157: the shell 'evaluate' function should properly restore the michael@0: // context's options. michael@0: michael@0: try { michael@0: evaluate('%', {noScriptRval: true}); michael@0: } catch(e) {} michael@0: new Function(""); michael@0: michael@0: try { michael@0: evaluate('new Function("");', {noScriptRval: true}); michael@0: } catch (e) {}