NativeScript / ios-jsc

NativeScript for iOS using JavaScriptCore
http://docs.nativescript.org/runtimes/ios
Apache License 2.0
298 stars 59 forks source link

fix(runtime): Correctly retrieve discarded exceptions flag #1241

Closed mbektchiev closed 4 years ago

mbektchiev commented 4 years ago

The value is wrongly read as false when the current thread doesn't have a TNSRuntime object associated with it. Instead of calling [TNSRuntime current] use [TNSRuntime runtimeForVM:] which will correctly find the object that matches the current execution state.

PR Checklist