tor-browser

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

array-elem-put-unresolvable-strict-strict.js (891B)


      1 'use strict';
      2 // This file was procedurally generated from the following sources:
      3 // - src/dstr-assignment/array-elem-put-unresolvable-strict.case
      4 // - src/dstr-assignment/error/assignment-expr.template
      5 /*---
      6 description: In strict mode, if the the assignment target is an unresolvable reference, a ReferenceError should be thrown. (AssignmentExpression)
      7 esid: sec-variable-statement-runtime-semantics-evaluation
      8 features: [destructuring-binding]
      9 flags: [generated, onlyStrict]
     10 info: |
     11    VariableDeclaration : BindingPattern Initializer
     12 
     13    1. Let rhs be the result of evaluating Initializer.
     14    2. Let rval be GetValue(rhs).
     15    3. ReturnIfAbrupt(rval).
     16    4. Return the result of performing BindingInitialization for
     17       BindingPattern passing rval and undefined as arguments.
     18 ---*/
     19 
     20 assert.throws(ReferenceError, function() {
     21  0, [ unresolvable ] = [];
     22 });
     23 
     24 reportCompare(0, 0);