NativeScript / ios-jsc

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

feat: Add deref function #1299

Open PeterStaev opened 1 year ago

PeterStaev commented 1 year ago

Makes compatible with NS Core modules 8.4

PR Checklist

What is the current behavior?

If you use JSC runtime with NS Core 8.4 you get errors that deref is not a function.

What is the new behavior?

Adds a deref function to WeakRef which is the same as get per the ES specs.

Fixes/Implements/Closes #[Issue Number].