Backed out changeset 440770be9e5e (bug 1870687) for causing bc failures on browser_se...
[gecko.git] / js / src / tests / test262 / built-ins / RegExp / prototype / Symbol.search / success-return-val.js
blob06020ea0f5c419d919fa392503d4dc8885bea883
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.
4 /*---
5 es6id: 21.2.5.9
6 description: Return value following successful match
7 info: |
8     [...]
9     14. Return Get(result, "index").
10 features: [Symbol.search]
11 ---*/
13 assert.sameValue(/a/[Symbol.search]('abc'), 0);
14 assert.sameValue(/b/[Symbol.search]('abc'), 1);
15 assert.sameValue(/c/[Symbol.search]('abc'), 2);
17 reportCompare(0, 0);