diff --git a/security/manager/ssl/src/nsCrypto.cpp b/security/manager/ssl/src/nsCrypto.cpp index bcd324cfea59..7a5e90ff7c27 100644 --- a/security/manager/ssl/src/nsCrypto.cpp +++ b/security/manager/ssl/src/nsCrypto.cpp @@ -1849,7 +1849,7 @@ loser: static nsISupports * GetISupportsFromContext(JSContext *cx) { - if (JS_GetOptions(cx) & JSOPTION_PRIVATE_IS_NSISUPPORTS) + if (JS::ContextOptionsRef(cx).privateIsNSISupports()) return static_cast(JS_GetContextPrivate(cx)); return nullptr;