tor-browser

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

func-expr-inside-func-decl-runtime.js (566B)


      1 // Copyright (c) 2012 Ecma International.  All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 esid: use-strict-directive
      6 es5id: 10.1.1-16-s
      7 description: >
      8    Strict Mode - Function code that is part of a FunctionExpression
      9    is strict function code if FunctionExpression is contained in use
     10    strict
     11 flags: [noStrict]
     12 ---*/
     13 
     14 function testcase() {
     15        "use strict";
     16 
     17        assert.throws(ReferenceError, function() {
     18            test262unresolvable = null;
     19        });
     20    }
     21 testcase();
     22 
     23 reportCompare(0, 0);