Lines Matching refs:search
15 var search = RegExp.prototype[Symbol.search]; variable
18 search.call (0, "string");
25 search.call (new RegExp(), {
36 search.call ({
47 search.call ({
61 search.call ({
72 search.call ({
81 search.call ({
90 search.call ({
101 search.call ({
112 search.call ({
126 assert (search.call (/abc/, "abc") === 0);
127 assert (search.call (/abc/, "strabc") === 3);
128 assert (search.call (/abc/, "bcd") === -1);
152 assert (search.call (re, "str") === 42);
156 o[Symbol.search] = function () {
159 assert ("string".search (o) === 4);
161 o[Symbol.search] = 42;
163 "string".search (o);
169 Object.defineProperty (o, Symbol.search, {
177 "string".search (o);
184 o[Symbol.search] = function () {
188 "string".search (o);
197 assert ("string".search (o) === 1);
199 o[Symbol.search] = RegExp.prototype[Symbol.search];
200 assert ("string".search (o) === "Duck");
210 RegExp.prototype[Symbol.search].call (o, "Duck");
228 assert (RegExp.prototype[Symbol.search].call (o, "str") === 0);