tor-browser

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

emulates-undefined.js (703B)


      1 // Copyright (C) 2020 Alexey Shvayka. All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 /*---
      4 esid: sec-binary-bitwise-operators-runtime-semantics-evaluation
      5 description: >
      6  ?? doesn't special-case [[IsHTMLDDA]] object; rval is not evaluated.
      7 info: |
      8  CoalesceExpression : CoalesceExpressionHead ?? BitwiseORExpression
      9 
     10  1. Let lref be the result of evaluating CoalesceExpressionHead.
     11  2. Let lval be ? GetValue(lref).
     12  3. If lval is undefined or null, then
     13    [...]
     14  4. Otherwise, return lval.
     15 features: [IsHTMLDDA, coalesce-expression]
     16 ---*/
     17 
     18 var IsHTMLDDA = $262.IsHTMLDDA;
     19 
     20 assert.sameValue(IsHTMLDDA ?? unresolved, IsHTMLDDA);
     21 
     22 reportCompare(0, 0);