Revision f230a1cf deps/v8/src/regexp.js
deps/v8/src/regexp.js | ||
---|---|---|
189 | 189 |
// matchIndices is either null or the lastMatchInfo array. |
190 | 190 |
var matchIndices = %_RegExpExec(this, string, i, lastMatchInfo); |
191 | 191 |
|
192 |
if (matchIndices === null) {
|
|
192 |
if (IS_NULL(matchIndices)) {
|
|
193 | 193 |
this.lastIndex = 0; |
194 | 194 |
return null; |
195 | 195 |
} |
... | ... | |
232 | 232 |
%_Log('regexp', 'regexp-exec,%0r,%1S,%2i', [this, string, lastIndex]); |
233 | 233 |
// matchIndices is either null or the lastMatchInfo array. |
234 | 234 |
var matchIndices = %_RegExpExec(this, string, i, lastMatchInfo); |
235 |
if (matchIndices === null) {
|
|
235 |
if (IS_NULL(matchIndices)) {
|
|
236 | 236 |
this.lastIndex = 0; |
237 | 237 |
return false; |
238 | 238 |
} |
... | ... | |
253 | 253 |
%_Log('regexp', 'regexp-exec,%0r,%1S,%2i', [regexp, string, lastIndex]); |
254 | 254 |
// matchIndices is either null or the lastMatchInfo array. |
255 | 255 |
var matchIndices = %_RegExpExec(regexp, string, 0, lastMatchInfo); |
256 |
if (matchIndices === null) {
|
|
256 |
if (IS_NULL(matchIndices)) {
|
|
257 | 257 |
this.lastIndex = 0; |
258 | 258 |
return false; |
259 | 259 |
} |
... | ... | |
384 | 384 |
var lastMatchInfo = new InternalPackedArray( |
385 | 385 |
2, // REGEXP_NUMBER_OF_CAPTURES |
386 | 386 |
"", // Last subject. |
387 |
void 0, // Last input - settable with RegExpSetInput.
|
|
387 |
UNDEFINED, // Last input - settable with RegExpSetInput.
|
|
388 | 388 |
0, // REGEXP_FIRST_CAPTURE + 0 |
389 | 389 |
0 // REGEXP_FIRST_CAPTURE + 1 |
390 | 390 |
); |
Also available in: Unified diff