Commit Graph

32 Commits

Author SHA1 Message Date
leda beb45454ad support parse waitForConnect and debugPort from simulator/config.json (#1521)
* revert v8 debugger ip to 0.0.0.0 for simulator

* parse isWaitForConnect and debug port from config.json

* remove macro useless, since we parse the options from config.json
2018-09-26 18:57:56 -07:00
leda 3ea4405d44 add getCurrentStackTrace interface for v8 script engine (#1446)
* add getCurrentStackTrace interface for v8 script engine

* return empty string before script init finished, prevent crash
2018-08-08 18:09:36 +08:00
James Chen 38cdd2b17d Adds const. 2018-03-05 18:11:08 +08:00
James Chen e83be4b12f fix missing getFileOperationDelegate for v8. 2018-03-05 17:42:50 +08:00
Jare Guo d9bd3d763c update license (#1089)
* updating license

* update license
2018-02-01 15:20:01 +08:00
James Chen df2c482314 Adds license info for .h/.cpp files in jswrapper. 2017-10-24 15:56:37 +08:00
James Chen f76c8f464d Updates API comments for spidermonkey and chakracore. 2017-10-24 15:56:37 +08:00
James Chen 2d4b0bfd9b Updates API comments for v8. 2017-10-24 15:56:37 +08:00
James Chen c625158e74 Moves cocos2d-x node:onEnter/onExit binding code from se::ScriptEngine to ScriptingCore. 2017-10-09 15:25:10 +08:00
James Chen 9bbc052444 se::ScriptEngine::enableDebugger takes serverAddr and port arguments. 2017-10-09 15:00:04 +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
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 9dafab9c49 macOS and iOS use JavaScriptCore, windows and android use V8. 2017-09-18 16:11:50 +08:00
James Chen 5eba72627a [jsb2.0] SpiderMonkey debugger works. Adds ScriptEngine::enableDebugger, mainLoopUpdate interfaces. 2017-09-07 18:19:38 +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 510b27fab8 Adds setExceptionCallback for V8. 2017-09-01 16:10:55 +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
James Chen f21fea4344 executeScriptBuffer -> evalString, executeScriptFile -> runScript. 2017-08-31 15:00:23 +08:00
James Chen 7268053a4f SpiderMonkey bytecode works again. 2017-08-21 18:10:10 +08:00
James Chen 2fab54c612 fix ios crash after closing app in task manager. 2017-08-18 14:34:55 +08:00
James Chen e13c1ffed3 fix warning generated by vs2015. 2017-08-11 09:47:49 +08:00
James Chen e86ed76abf jsb2.0 windows works on v8. 2017-08-09 18:06:33 +08:00
James Chen e51e4d51bb websocket text response fix and update v8 2017-08-09 16:11:23 +08:00
James Chen c7c45df6fa updates. 2017-08-04 18:35:15 +08:00
James Chen 64f6b95b71 adds v8 inspector code from Nodejs 2017-08-04 16:53:11 +08:00
James Chen 47b39f8f2e v8 cleanup. 2017-08-02 17:39:14 +08:00
James Chen aebb1c2282 cleanup, and final class. 2017-08-02 14:37:41 +08:00
James Chen c315a58659 cleanup 2017-07-21 14:24:56 +08:00
James Chen e5edd5d6cf cleanup. 2017-07-20 17:50:40 +08:00
James Chen 91359f1f75 first commit 2017-06-15 17:24:30 +08:00