blob: 5d6b2cc65bbfd5a7aaa375a16d90fab35fcbed6d [file] [log] [blame]
// This test should not crash.
var caughtReferenceError = false;
try {
function* m(){ try {throw [void 0]} catch ([c = (yield c)]) {} }
[...m()]
} catch (e) {
caughtReferenceError = true;
}
if (!caughtReferenceError)
throw Error("Missing ReferenceError");