mozilla

Compare Revisions

RegExp.prototype.test()

Change Revisions

Revision 65250:

Revision 65250 by evilpie on

Revision 65251:

Revision 65251 by Sheppy on

Title:
test
test
Slug:
JavaScript/Reference/Global_Objects/RegExp/test
JavaScript/Reference/Global_Objects/RegExp/test
Tags:
"Regular Expressions"
"Regular Expressions"
Content:

Revision 65250
Revision 65251
n20            Method of <a href="/en/JavaScript/Reference/Global_Obn20            Method of <a href="/en/JavaScript/Reference/Global_Ob
>jects/RegExp"><code>RegExp</code></a>>jects/RegExp" title="en/JavaScript/Reference/Global_Objects/RegEx
 >p"><code>RegExp</code></a>
tt74    <div class="geckoVersionNote">
74    <p>75      <p>
75      {{ Fx_minversion_note("8") }}76        {{ gecko_callout_heading("8.0") }}
76    </p>77      </p>
78      <p>
79        Prior to Gecko 8.0 {{ geckoRelease("8.0") }}, <code>test(
 >)</code> was implemented incorrectly; when it was called with no 
 >parameters, it would match against the value of the RegExp proper
 >ty input instead of against the string "undefined". This is fixed
 >; now <code>/undefined/.text()</code> correctly results in <code>
 >true</code>, instead of an error.
80      </p>
81    </div>

Back to History