Common JS API: native layer call can be platform-dependent now