Page 23 - JavaScript
P. 23

Early iteration exit                                                                             311

            Throwing an error to generator function                                                          311

            Iteration                                                                                        311

            Sending Values to Generator                                                                      312

            Delegating to other Generator                                                                    312

            Iterator-Observer interface                                                                      313

        Iterator                                                                                            313

        Observer                                                                                            313

        Doing async with Generators                                                                         314

          How does it work ?                                                                                 315


          Use it now                                                                                         315

          Async flow with generators                                                                         315

        Chapter 50: Geolocation                                                                             316

          Syntax                                                                                             316

          Remarks                                                                                            316

          Examples                                                                                           316

            Get a user's latitude and longitude                                                              316

            More descriptive error codes                                                                     316

            Get updates when a user's location changes                                                       317

        Chapter 51: Global error handling in browsers                                                       318

          Syntax                                                                                             318

          Parameters                                                                                         318

          Remarks                                                                                            318

          Examples                                                                                           318

            Handling window.onerror to report all errors back to the server-side                             318

        Chapter 52: History                                                                                 320

          Syntax                                                                                             320

          Parameters                                                                                         320

          Remarks                                                                                            320


          Examples                                                                                           320
            history.replaceState()                                                                           320
   18   19   20   21   22   23   24   25   26   27   28