cccV1.1.0 getPreviousLocation

in cccV1.1.0 touch. getPreviousLocation c++bind error: bSimulator : Error: js_cocos2dx_Touch_getLocationInView : Invalid Native Object
12
at a: “let curTouchPosition = touch.getLocationInView()” (assets/xxxxxx)
Simulator : ScriptingCore::callFunctionName error:__errorHandler wasn’t found!

Is it’s my fault?Or the engine?

I tested on my end and the API works fine.
Could you post your code in context?

        eventNode.on(cc.Node.EventType.TOUCH_MOVE, (event) => {
            if(_this.intercept()) {
                return;
            }
            //单点触摸,移动
            if(_touches.length == 1) {
                let touch = _touches[0];
                let curTouchPosition = touch.getLocationInView();
                let preTouchPosition = touch.getPreviousLocationInView();
                eventNode.x = eventNode.x + curTouchPosition.x - preTouchPosition.x;
                eventNode.y = eventNode.y - curTouchPosition.y + preTouchPosition.y;

I simply wan’t move a texture,and it work fine in a web browser,but can not work in simulator…

It also can not work in ios’s simulator,some error log like:
jsb ERROR: File /Users/jsen/Documents/git/self/dachengxiaobing/build/jsb-default/frameworks/cocos2d-x/cocos/scripting/js-bindings/auto/jsb_cocos2dx_auto.cpp: Line: 1045, Function: js_cocos2dx_Touch_getLocationInView
js_cocos2dx_Touch_getLocationInView : Invalid Native Object
/Users/jsen/Library/Developer/CoreSimulator/Devices/A7154FED-F0B9-4818-A3C3-0CBCB9FACDD7/data/Containers/Bundle/Application/96F1CF1E-5345-47B9-AF7E-7A0FD993CED9/dachengxiaobing-mobile.app/src/project.dev.js:132:Error: js_cocos2dx_Touch_getLocationInView : Invalid Native Object
ScriptingCore::callFunctionName error:__errorHandler wasn’t found!

I’ve tested these two API and they work fine.

Could you check your _touches array and see if it has correct value?

yes,yet,I tested _touches array and in touch_start I can get call _touches[0].getdelta() and other method,but when i want call these methods from touch_move ,something error happended,the log say inviald native object.I think if just my way is not in.but it can do well in web browser,i just can not understand it.