throw error. fix shim.js