blob: 9b59d5d83d5539ad150dfeaed33817673b64f12c [file] [log] [blame]
// 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);