Open phukhanhlee opened 5 years ago
After I replace ... operator with function :
function extendObj(obj, src) { for (var key in src) { if (src.hasOwnProperty(key)) obj[key] = src[key]; } return obj; }
Seem this library doesn't support new javascript style. I don't master JS but (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax) is quite used a lot in JS
Hi @phukhanhlee ,
For iOS, nodejs-mobile uses ChakraCore, which seems to not have full support for the spread operator yet: https://github.com/nodejs/node-chakracore/issues/620
Will this be added anytime soon?
My node js is simply to web socket relay kit. It works well on terminal but It crash when runing on iOS device. I build success with your demo project and I just put my node project on "nodejs-project" folder and run my project.
Here is the crash ! It seem NodeMobile doesn't support "... operator" in javascript ?
send(data, options, cb) { if (this.readyState === WebSocket.CONNECTING) { throw new Error('WebSocket is not open: readyState 0 (CONNECTING)'); }
}