blob: 1df69882003efbd44349e4c21bd4f5ae555a2a9d [file] [edit]
(function() {
var exception;
try {
var list = { 'a' : 5 };
for(const { x = x } in list)
x();
} catch (e) {
exception = e;
}
if (exception != "ReferenceError: Cannot access 'x' before initialization.")
throw "FAILED";
})();