Skip to content

Commit

Permalink
test: add regression test for V8 parse error
Browse files Browse the repository at this point in the history
Refs: #11480
PR-URL: #11483
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
  • Loading branch information
targos authored and MylesBorins committed Mar 8, 2017
1 parent b198918 commit b3f32f9
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/parallel/test-regress-GH-11480.js
@@ -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 b3f32f9

Please sign in to comment.