inherit({},x) throws assertion errors, so I switched it to inherit(Object,x)