接口有导出缺不能调用

  • Creator 版本:1.9.3

  • 目标平台: Android

  • 详细报错信息,包含调用堆栈:
    12-24 11:32:21.306 14272-14645/org.cocos2d.helloworld D/jswrapper: JS: glnode.draw : 0
    12-24 11:32:21.306 14272-14645/org.cocos2d.helloworld E/jswrapper: ERROR: Uncaught TypeError: this.glnode.enableVertexAttribArray is not a function, location: src/project.dev.js:0:0
    STACK:
    [0]__drawArrays@src/project.dev.js:269
    [1]__drawByMoveProgram@src/project.dev.js:238
    [2]anonymous@src/project.dev.js:150
    12-24 11:32:21.306 14272-14645/org.cocos2d.helloworld E/jswrapper: [ERROR] (D:/CocosCreator/poker161/build/jsb-default/frameworks/cocos2d-x/cocos/scripting/js-bindings/proj.android/…/jswrapper/v8/Object.cpp, 519): Invoking function (0x9a7820c0) failed!

  • 重现方式:

  • 出现概率:必现

  • 额外线索:

    getOrCreatePlainObject_r("jsb", global, &__jsbObj);
    getOrCreatePlainObject_r("__jsc__", global, &__jscObj);
    getOrCreatePlainObject_r("gl", global, &__glObj);

__glObj 定义的方法,在 global 的 gl 命名空间下。