Bug #4580: Fix API inconsistence in Constants between h5 and jsb