| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 3ab070d commit 5365501
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,14 @@ | |||
| 1 | + 'use strict'; | ||
| 2 | + require('../common'); | ||
| 3 | + const assert = require('assert'); | ||
| 4 | + | ||
| 5 | + // https://github.com/nodejs/node/issues/11480 | ||
| 6 | + // This code should not throw a SyntaxError. | ||
| 7 | + | ||
| 8 | + const a = 1; | ||
| 9 | + const b = 1; | ||
| 10 | + let c; | ||
| 11 | + | ||
| 12 | + ((a + 1), {c} = b); | ||
| 13 | + | ||
| 14 | + assert.strictEqual(c, undefined); | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments