archives

« Bugzilla Issues Index

#976 — 11.1.8: "characters are collected into Strings"


In 11.1.8 "Regular Expression Literals",
under "Runtime Semantics: Evaluation",
step 1 says:
... first, the characters comprising the regular expression's
RegularExpressionBody and RegularExpressionFlags production expansions
are collected uninterpreted into two Strings Pattern and Flags,
respectively.

You should maybe mention that this involves applying UTF-16 Encoding to the characters.


specifically it should be based uopn the string literal encoding rules in 7.8.4

This may also need to be shifted between 11.1.8 and 7.8.5