Bug 49271
| Summary: | PatternCharacter/CharacterClass ranges should be SyntaxErrors | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Chris Leary <christopher.leary> |
| Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED INVALID | ||
| Severity: | Normal | CC: | barraclough |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | All | ||
| OS: | All | ||
| URL: | https://bugzilla.mozilla.org/show_bug.cgi?id=576837 | ||
Chris Leary
See https://bugzilla.mozilla.org/show_bug.cgi?id=576837#c2
Steps: /[C-\s]/
Expected: SyntaxError
Note that character-class/character-class range syntax like /[\s-\w]/ is accepted by the SpiderMonkey engine as an extension.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Gavin Barraclough
This is required for web compatibility, and permitted by the spec under section 2.
cheers, G.