Debian Codegraph @

js/src/tests/test262/built-ins/String/15.5.5.5.2-3-2.js

raw
1 // Copyright (c) 2012 Ecma International. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 info: |
6 15.5.5.2 defines [[GetOwnProperty]] for Strings. It supports using indexing
7 notation to look up non numeric property names.
8 es5id: 15.5.5.5.2-3-2
9 description: String value indexing returns undefined for missing data properties
10 ---*/
11
12 var s = String("hello world");
13
14
15 assert.sameValue(s["foo"], undefined, 's["foo"]');
16
17 reportCompare(0, 0);