Added the platform sizeof method for the web platform.