- 
    Bug 
- 
    Resolution: Fixed
- 
     P3 P3
- 
    9
- 
    None
- 
        b63
- 
        generic
- 
        generic
| Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build | 
|---|---|---|---|---|---|---|
| JDK-8085644 | emb-9 | Hannes Wallnoefer | P3 | Resolved | Fixed | team | 
| JDK-8087060 | 8u65 | Hannes Wallnoefer | P3 | Resolved | Fixed | b01 | 
| JDK-8078696 | 8u60 | Hannes Wallnoefer | P3 | Resolved | Fixed | b14 | 
| JDK-8138448 | emb-8u65 | Unassigned | P3 | Resolved | Fixed | b01 | 
| JDK-8080039 | emb-8u60 | Hannes Wallnoefer | P3 | Resolved | Fixed | team | 
                    First time: parser throws SyntaxError
jjs> Function("/a/r")
<shell>:1 SyntaxError: <function>:1:4 Unsupported RegExp flag: r
/a/r
^
Second time: silently succeeds
jjs> Function("/a/r")
function () {
/a/r
}
Third time also silently succeeds; trying to invoke it now throws the error during invocation:
jjs> var x = Function("/a/r")
jjs> x()
<function>:2 SyntaxError: Unsupported RegExp flag: r
This seems inconsistent.
            
jjs> Function("/a/r")
<shell>:1 SyntaxError: <function>:1:4 Unsupported RegExp flag: r
/a/r
^
Second time: silently succeeds
jjs> Function("/a/r")
function () {
/a/r
}
Third time also silently succeeds; trying to invoke it now throws the error during invocation:
jjs> var x = Function("/a/r")
jjs> x()
<function>:2 SyntaxError: Unsupported RegExp flag: r
This seems inconsistent.
- backported by
- 
                    JDK-8078696 Function with same body not reparsed after SyntaxError -           
- Resolved
 
-         
- 
                    JDK-8080039 Function with same body not reparsed after SyntaxError -           
- Resolved
 
-         
- 
                    JDK-8085644 Function with same body not reparsed after SyntaxError -           
- Resolved
 
-         
- 
                    JDK-8087060 Function with same body not reparsed after SyntaxError -           
- Resolved
 
-         
- 
                    JDK-8138448 Function with same body not reparsed after SyntaxError -           
- Resolved
 
-         
- relates to
- 
                    JDK-8066222 too strong assertion on function expression names -           
- Resolved
 
-         
             (1 relates to)