thrown = false
try {
    ("".x = Object.seal)
    "".x.valueOf();
} catch (e) {thrown = true}
assertEq(thrown, true);