archives

« Bugzilla Issues Index

#20 — String.proto.match, unnecessary [[Class]] test


Step 3&4 could be simplified to:
3 let rx be the value returned as if by calling the standard built-in RegExp constructor as a function with regexp as the argument.

This eliminates as [[class]] test and redundant specification language.


However, the current form may more cleary expression that if the argument is already a regexp it is used without conversion.

In any case, the use of [[Class]] has already been eliminate.


fixed in rev 14 editor's draft


in Rev 14 draft