4 lines
81 B
JavaScript

assert.throws(function () {
var {} = null;
}, /Cannot destructure undefined/);