I don't think this is allowed because `document = 42` is an assignment expression, not a declaration nor an export specifier list (e.g. `export var a = 1`, `export function add(){}`, or  `export { document, window }`.