Skip to content

Commit

Permalink
test: add regression test for V8 parse error
Browse files Browse the repository at this point in the history
  • Loading branch information
targos committed Mar 3, 2017
1 parent b858d69 commit 6b34806
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/parallel/test-regress-GH-11480.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
'use strict';
require('../common');
const assert = require('assert');

// https://github.com/nodejs/node/issues/11480
// This code should not throw a SyntaxError.

const a = 1;
const b = 1;
let c;

((a + 1), {c} = b);

assert.strictEqual(c, undefined);

0 comments on commit 6b34806

Please sign in to comment.