Commit Graph

628 Commits

Author SHA1 Message Date
James Chen 37e0865cbf Adds docs for JSB2.0 2017-09-30 15:53:35 +08:00
James Chen 7c0b328dd3 typo fix in sm/ScriptEngine.cpp 2017-09-29 10:30:40 +08:00
James Chen d6a177ea65 Include file tweak. 2017-09-29 10:19:57 +08:00
2youyouo2 5cfc3ec097 change onGetDataFromFile param to callback function 2017-09-28 17:06:55 +08:00
2youyouo2 f4fcf75547 Adds static keyword for removeFileExt function. 2017-09-28 15:32:00 +08:00
2youyouo2 bc8c5c1bee add xxtea support 2017-09-27 16:03:07 +08:00
James Chen 28d9ad258b Removes unused \n string ending since LOGD and LOGE in jswrapper need \n at the end of string. 2017-09-26 15:09:16 +08:00
James Chen 24efeae53d Merge pull request #846 from jareguo/develop
load image for existing texture
2017-09-26 01:59:32 -05:00
Jare Guo 2cca661439 tweaks 2017-09-26 14:57:51 +08:00
Jare Guo 7ffb0d40db avoid multi-thread issue 2017-09-26 14:24:04 +08:00
Jare Guo c001b9db63 sync develop branch 2017-09-26 11:30:15 +08:00
CocosRobot 4523e9aee3 [ci skip][AUTO]: updating jsbinding automatically 2017-09-26 03:27:35 +00:00
Jare Guo 21011d38d9 Merge commit 'ee808929a67ee7ad3b38f135cb2a67b8e32c89eb' into develop 2017-09-26 11:04:56 +08:00
Jare Guo 1ea2fc1715 revert TextureCache, use ThreadPool instead 2017-09-26 10:18:01 +08:00
James Chen 11e0e21267 Adds Downloader binding comment. 2017-09-25 16:48:02 +08:00
James Chen 47c9e74346 fix console.log doesn't output in creator console. 2017-09-25 16:35:00 +08:00
James Chen 17a97d0aff fixed #839: Adds event.target for websocket callback. 2017-09-25 11:54:20 +08:00
James Chen cf935f484c fix XMLHttpRequest.open binding. 2017-09-25 10:04:10 +08:00
James Chen 8b1ba02f9f Implements seval_to_TTFConfig, don't ignore createWithTTF and setTTFConfig in auto bindings. 2017-09-23 17:53:24 +08:00
Jare Guo 769628d414 load image for existing texture 2017-09-23 09:18:51 +08:00
James Chen 235be1ec8a Updates bindings. 2017-09-22 17:47:38 +08:00
James Chen 8230176ccb Fixes crash while click restart button in network test. (#829)
* Sync PR(https://github.com/cocos2d/cocos2d-x/pull/17921): remove "system" usage which is removed from iOS11.

* Fixes crash while click `restart` button in network test.

* printf -> LOGD

* Memory leak fix in XMLHttpRequest binding code.
2017-09-20 01:48:15 -05:00
James Chen 7f4088eb4a Win32 template fix, LOGD could output log in vs in se module. (#826)
* Win32 template fix, LOGD could output log in vs in se module.

* Updates config.json
2017-09-19 05:09:07 -05:00
2youyouo2 6a5012df16 remove cocostudio files 2017-09-19 15:29:32 +08:00
2youyouo2 e642e4a7bb remove unused code 2017-09-19 15:19:26 +08:00
2youyouo2 6771164c5d remove unused ccui 2017-09-18 18:16:51 +08:00
James Chen 9dafab9c49 macOS and iOS use JavaScriptCore, windows and android use V8. 2017-09-18 16:11:50 +08:00
James Chen 7539ccdad5 Merge pull request #819 from dumganhar/jsb2.0
[android] Fixes AppAcitivity (Sub class of Cocos2dxActivity) is re-created which causes crash if launching app first time and re-opening from icon.
2017-09-15 03:50:43 -05:00
James Chen 7bb53e3b13 update binding js. 2017-09-15 10:41:55 +08:00
James Chen ddc802d9f0 CCLOG in finalize method rather than cocos2d::log. 2017-09-15 10:40:43 +08:00
CocosRobot 1079062944 [ci skip][AUTO]: updating jsbinding automatically 2017-09-15 02:31:02 +00:00
CocosRobot 603698b1c0 [ci skip][AUTO]: updating jsbinding automatically 2017-09-08 02:12:57 +00:00
James Chen 03a6d7ca8e Reverts. 2017-09-08 09:21:53 +08:00
James Chen 53e07c1da7 Merge branch 'v1.6' of git://github.com/cocos-creator/cocos2d-x-lite into jsb2.0 2017-09-07 18:32:24 +08:00
James Chen 5eba72627a [jsb2.0] SpiderMonkey debugger works. Adds ScriptEngine::enableDebugger, mainLoopUpdate interfaces. 2017-09-07 18:19:38 +08:00
pandamicro 087f1f8c8d Remove inappropriate logs in debugger 2017-09-07 17:48:48 +08:00
James Chen 4df2b69d2f For compatibility purpose, __errorHandler has 4 parameters, they are filePath, lineno, message, stack. 2017-09-06 16:08:16 +08:00
James Chen ad13e5336b Adds global variable scriptEngineType. 2017-09-06 11:11:37 +08:00
James Chen 4990aa3130 [V8, ChakraCore] Exception callback info contains location, message, stack. Location contains filePath, line number and column number. 2017-09-06 10:58:43 +08:00
James Chen 05a3f74842 [SM] Exception info contains location, message, stack. Location contains filePath, line number and column number. 2017-09-06 10:58:43 +08:00
James Chen 269f65fd85 [JSC] Exception info contains location, message, stack. Location contains filePath, line number and column number. 2017-09-06 10:58:43 +08:00
pandamicro 0b057318a4 Avoid useless function check in executeFunctionWithOwner and useless js parameter construction in websocket 2017-09-04 13:46:37 +08:00
pandamicro 97b52f38cb Fix JS_EncodeStringToUTF8 memory leak 2017-09-01 18:07:14 +08:00
James Chen 8081cdc071 Adds setExceptionCallback for ChakraCore. 2017-09-01 16:19:15 +08:00
James Chen 510b27fab8 Adds setExceptionCallback for V8. 2017-09-01 16:10:55 +08:00
James Chen 2b112bd7a4 Adds ScriptEngine::setExceptionCallback for Spidermonkey, and fixes a memory leak after using JS_EncodeStringToUTF8. 2017-09-01 15:24:43 +08:00
James Chen cd77d4b567 Updates log format for jsc. 2017-09-01 15:23:43 +08:00
James Chen 3af1a24682 Adds setExceptionCallback for JSC. 2017-09-01 15:10:48 +08:00
James Chen 6c40f2783f More renames: gc -> garbageCollect, isInGC -> isGarbageCollecting, _setInGC -> _setGarbageCollecting 2017-08-31 15:52:58 +08:00
James Chen f2923331af Less friend class declaration in ScriptEngine, adds ScriptEngine::isInCleanup method for checking whether script engine is cleaning up. 2017-08-31 15:00:23 +08:00