Item12952: this code doesn't work in strict mode

partial revert