tor-browser

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

cptn-nrml-expr-obj.js (531B)


      1 // Copyright (C) 2016 the V8 project authors. All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 /*---
      4 info: |
      5    If Result(3).type is normal and its completion value is a value V,
      6    then return the value V
      7 esid: sec-performeval
      8 es5id: 15.1.2.1_A3.1_T2
      9 description: Expression statement. Eval return object value
     10 ---*/
     11 
     12 var x = {};
     13 var y;
     14 
     15 assert.sameValue((0,eval)("y = x"),  x, 'AssignmentExpression');
     16 
     17 assert.sameValue((0,eval)("x"), x, 'IdentifierReference');
     18 
     19 reportCompare(0, 0);