blob: 06020ea0f5c419d919fa392503d4dc8885bea883 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 21.2.5.9
description: Return value following successful match
info: |
[...]
14. Return Get(result, "index").
features: [Symbol.search]
---*/
assert.sameValue(/a/[Symbol.search]('abc'), 0);
assert.sameValue(/b/[Symbol.search]('abc'), 1);
assert.sameValue(/c/[Symbol.search]('abc'), 2);
reportCompare(0, 0);
|