1 // Copyright (C) 2015 the V8 project authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
6 description: Return value following successful match
9 14. Return Get(result, "index").
10 features: [Symbol.search]
13 assert.sameValue(/a/[Symbol.search]('abc'), 0);
14 assert.sameValue(/b/[Symbol.search]('abc'), 1);
15 assert.sameValue(/c/[Symbol.search]('abc'), 2);