Update JavaScriptEnvironment.md

-fix grammar in a sentence
This commit is contained in:
David Rabkin 2015-04-10 19:18:04 -07:00
Родитель 3d602de8c1
Коммит da3b982abe
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -12,7 +12,7 @@ next: activityindicatorios
When using React Native, you're going to be running your JavaScript code in two environments:
* In the simulator and on the phone: [JavaScriptCore](http://trac.webkit.org/wiki/JavaScriptCore) which is the JavaScript engine that powers Safari and web views. Due to the absence of writable executable memory in iOS apps, it doesn't run with JIT.
* When using Chrome debugging, it runs all the JavaScript code within Chrome itself and communicate with Objective-C via WebSocket. So you are using [V8](https://code.google.com/p/v8/).
* When using Chrome debugging, it runs all the JavaScript code within Chrome itself and communicates with Objective-C via WebSocket. So you are using [V8](https://code.google.com/p/v8/).
While both environments are very similar, you may end up hitting some inconsistencies. We're likely going to experiment with other JS engines in the future, so it's best to avoid relying on specifics of any runtime.