tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

S13_A7_T1.js (2756B)


      1 // Copyright 2009 the Sputnik authors.  All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 info: The FunctionBody must be SourceElements
      6 es5id: 13_A7_T1
      7 description: Using only SourceElements within the FunctionBody
      8 ---*/
      9 
     10 function __func(){'ground control to major tom'};
     11 //////////////////////////////////////////////////////////////////////////////
     12 //CHECK#1
     13 if (typeof __func !== "function") {
     14 throw new Test262Error('#1: typeof __func === "function". Actual: typeof __func ==='+typeof __func);
     15 }
     16 //
     17 //////////////////////////////////////////////////////////////////////////////
     18 
     19 function __func__2(){b};
     20 //////////////////////////////////////////////////////////////////////////////
     21 //CHECK#2
     22 if (typeof __func__2 !== "function") {
     23 throw new Test262Error('#2: typeof __func__2 === "function". Actual: typeof __func__2 ==='+typeof __func__2);
     24 }
     25 //
     26 //////////////////////////////////////////////////////////////////////////////
     27 
     28 function __func__3(){1};
     29 //////////////////////////////////////////////////////////////////////////////
     30 //CHECK#3
     31 if (typeof __func__3 !== "function") {
     32 throw new Test262Error('#3: typeof __func__3 === "function". Actual: typeof __func__3 ==='+typeof __func__3);
     33 }
     34 //
     35 //////////////////////////////////////////////////////////////////////////////
     36 
     37 function __func__4(){1+c};
     38 //////////////////////////////////////////////////////////////////////////////
     39 //CHECK#4
     40 if (typeof __func__4 !== "function") {
     41 throw new Test262Error('#4: typeof __func__4 === "function". Actual: typeof __func__4 ==='+typeof __func__4);
     42 }
     43 //
     44 //////////////////////////////////////////////////////////////////////////////
     45 
     46 function __func__5(){inc(d)};
     47 //////////////////////////////////////////////////////////////////////////////
     48 //CHECK#5
     49 if (typeof __func__5 !== "function") {
     50 throw new Test262Error('#5: typeof __func__5 === "function". Actual: typeof __func__5 ==='+typeof __func__5);
     51 }
     52 //
     53 //////////////////////////////////////////////////////////////////////////////
     54 
     55 function __func__6(){var \u0042 = 1;};
     56 //////////////////////////////////////////////////////////////////////////////
     57 //CHECK#6
     58 if (typeof __func__6 !== "function") {
     59 throw new Test262Error('#6: typeof __func__6 === "function". Actual: typeof __func__6 ==='+typeof __func__6);
     60 }
     61 //
     62 //////////////////////////////////////////////////////////////////////////////
     63 
     64 //function __func__7(){var \u003d = 1;};
     65 ////////////////////////////////////////////////////////////////////////////////
     66 ////CHECK#7
     67 //if (typeof __func__7 !== "function") {
     68 //	throw new Test262Error('#7: The FunctionBody must be SourceElements');
     69 //}
     70 //
     71 //////////////////////////////////////////////////////////////////////////////
     72 
     73 reportCompare(0, 0);