issue #5934 : fix callFunc potential crashes on jsb
Merge pull request #784 from joshuastray/fix_callFunc

issue #5934 : fix callFunc potential crashes on jsb