blob: 9b59d5d83d5539ad150dfeaed33817673b64f12c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// 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: String coercion of `string` argument
info: |
[...]
3. Let S be ToString(string).
[...]
features: [Symbol.search]
---*/
var obj = {
toString: function() {
return 'toString value';
}
};
assert.sameValue(/ring/[Symbol.search](obj), 4);
|