exception throwing works in strict mode