function test() {
'use strict';
const baz = 1;
try {
Function("'use strict'; const foo = 1; foo = 2;")();
} catch(e) {
return true;
}
if (!test())
throw new Error("Test failed");