test262/implementation-contributed/javascriptcore/stress/regress-185995.js

14 lines
285 B
JavaScript

(function() {
var exception;
try {
var list = { 'a' : 5 };
for(const { x = x } in list)
x();
} catch (e) {
exception = e;
}
if (exception != "ReferenceError: Cannot access uninitialized variable.")
throw "FAILED";
})();