aFarkas/html5shiv — comment on commit cee53872509ee9aafad04ddaca8117ac72ba3b23
File: src/html5shiv-printless.js line 41
By jdalton:

Also if erroring is a problem a lot of times you can get a heads up by checking the `typeof` the property.
For example `document.createElement('div').offsetParent;// will throw an error` but the `typeof document.createElement('div').offsetParent` will return `unknown` and that could give you the heads up to stay clear.