blob: 69db053f4a4f8db2fe81907406aee3caac20b65b [file] [log] [blame]
Ben Murdochda12d292016-06-02 14:46:10 +01001// 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
5function g(s, key) { return s[key]; }
6
7assertEquals(g(new String("a"), "length"), 1);
8assertEquals(g(new String("a"), "length"), 1);
9assertEquals(g("a", 32), undefined);
10assertEquals(g("a", "length"), 1);
11assertEquals(g(new String("a"), "length"), 1);