tor-browser

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

lgcl-nullish-assignment-operator-unresolved-lhs-strict.js (529B)


      1 'use strict';
      2 // Copyright (c) 2020 Ecma International.  All rights reserved.
      3 // This code is governed by the BSD license found in the LICENSE file.
      4 
      5 /*---
      6 esid: sec-assignment-operators-runtime-semantics-evaluation
      7 description: >
      8    ReferenceError is thrown if the LeftHandSideExpression of a Logical
      9    Assignment operator(??=) evaluates to an unresolvable reference
     10 flags: [onlyStrict]
     11 features: [logical-assignment-operators]
     12 
     13 ---*/
     14 
     15 assert.throws(ReferenceError, function() {
     16  unresolved ??= 1;
     17 });
     18 
     19 reportCompare(0, 0);