archives

« Bugzilla Issues Index

#3723 — 21.2.3.1 RegExp ( pattern, flags ): steps 6.c and d must be run only if the flags argument is undefined


21.2.3.1 RegExp ( pattern, flags )

Currently:

6. ...
c. Let F be Get(pattern, "flags").
d. ReturnIfAbrupt(F).

Should be:

c. If flags is undefined, then
i. Let F be Get(pattern, "flags").
ii. ReturnIfAbrupt(F).
d. Else
i. Let F be flags.


fixed in rev32 editor's draft


fixed in rev32 draft