Home | History | Annotate | Download | only in regress
      1 // Copyright 2016 the V8 project authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 function g(s, key) { return s[key]; }
      6 
      7 assertEquals(g(new String("a"), "length"), 1);
      8 assertEquals(g(new String("a"), "length"), 1);
      9 assertEquals(g("a", 32), undefined);
     10 assertEquals(g("a", "length"), 1);
     11 assertEquals(g(new String("a"), "length"), 1);
     12