Commit 1633d80
committed
Merge pull request #5818 from wyrichte:build/wyrichte/with_label
Repro:
cmd: ch bug.js
`with ({}) L: function f(){}`
Should output a syntax error as the[ statement of a WithStatement is not allowed to be a LabelledFunction](https://tc39.github.io/ecma262/#sec-with-statement-static-semantics-early-errors), but instead Chakra does not output a syntax error.
File tree
5 files changed
+551
-512
lines changed- lib/Parser
- test/Function
5 files changed
+551
-512
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10037 | 10037 | | |
10038 | 10038 | | |
10039 | 10039 | | |
10040 | | - | |
| 10040 | + | |
10041 | 10041 | | |
10042 | 10042 | | |
10043 | 10043 | | |
10044 | 10044 | | |
10045 | 10045 | | |
10046 | 10046 | | |
10047 | | - | |
| 10047 | + | |
| 10048 | + | |
| 10049 | + | |
| 10050 | + | |
| 10051 | + | |
| 10052 | + | |
| 10053 | + | |
| 10054 | + | |
| 10055 | + | |
| 10056 | + | |
| 10057 | + | |
| 10058 | + | |
| 10059 | + | |
| 10060 | + | |
| 10061 | + | |
| 10062 | + | |
| 10063 | + | |
| 10064 | + | |
| 10065 | + | |
| 10066 | + | |
| 10067 | + | |
| 10068 | + | |
| 10069 | + | |
| 10070 | + | |
| 10071 | + | |
10048 | 10072 | | |
10049 | 10073 | | |
10050 | 10074 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
| 115 | + | |
115 | 116 | | |
116 | 117 | | |
117 | 118 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
0 commit comments