As a few people have noticed, we took a small breaking change to the JsRT API between the Windows 8.1 Preview and Windows 8.1 RTM. The
JsCreateFunction API got an additional parameter that allows registering a piece of data (which can just be null) with the native callback which will be provided to the callback when it’s invoked. It’s a super-useful place to stash something like a “this” pointer for a C++ callback, which is why we added it before the concrete completely dried on the API. It does mean, though, that most applications compiled against the preview will break and need to be recompiled against RTM.
Accordingly, we’ve updated both the MSDN documentation for JSRT and the Code Gallery hosting sample.
You can always reach me on Twitter here.
The last major conceptual topic to cover for JsRT is how exceptions are handled.
OK, so, then how do exceptions work?
JsErrorInExceptionState). This will continue until the host retrieves and clears the exception using the
You should also follow me on Twitter here.