js/src/tests/js1_8_1/regress/regress-452498-054.js

Thu, 15 Jan 2015 15:59:08 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:59:08 +0100
branch
TOR_BUG_9701
changeset 10
ac0c01689b40
permissions
-rw-r--r--

Implement a real Private Browsing Mode condition by changing the API/ABI;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

     1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     2 /*
     3  * Any copyright is dedicated to the Public Domain.
     4  * http://creativecommons.org/licenses/publicdomain/
     5  * Contributor: Jason Orendorff
     6  */
     8 //-----------------------------------------------------------------------------
     9 var BUGNUMBER = 452498;
    10 var summary = 'TM: upvar2 regression tests';
    11 var actual = '';
    12 var expect = '';
    15 //-----------------------------------------------------------------------------
    16 test();
    17 //-----------------------------------------------------------------------------
    19 function test()
    20 {
    21   enterFunc ('test');
    22   printBugNumber(BUGNUMBER);
    23   printStatus (summary);
    26 // ------- Comment #54 From Jason Orendorff
    28 // Assertion failure: cg->flags & TCF_IN_FUNCTION
    29 // at ../jsemit.cpp:1991
    30 //
    31   function f() { var x; eval("let x, x;"); }
    32   f();
    34 // Assertion failure: fp2->fun && fp2->script,
    35 // at ../jsinterp.cpp:5589
    36 //
    37   eval("let(x) function(){ x = this; }()");
    39   reportCompare(expect, actual, summary);
    41   exitFunc ('test');
    42 }

mercurial