Lines Matching refs:nf
948 // 12.1.12 UnwrapNumberFormat( nf )
949 JSHandle<JSTaggedValue> JSNumberFormat::UnwrapNumberFormat(JSThread *thread, const JSHandle<JSTaggedValue> &nf)
951 // 1. Assert: Type(nf) is Object.
952 ASSERT(nf->IsJSObject());
954 // 2. If nf does not have an [[InitializedNumberFormat]] internal slot and ?
955 // InstanceofOperator(nf, %NumberFormat%) is true, then Let nf be ? Get(nf, %Intl%.[[FallbackSymbol]]).
957 bool hasInstance = JSFunction::OrdinaryHasInstance(thread, env->GetNumberFormatFunction(), nf);
960 bool isJSNumberFormat = nf->IsJSNumberFormat();
961 // If nf does not have an [[InitializedNumberFormat]] internal slot and ?
962 // InstanceofOperator(nf, %NumberFormat%) is true, then
963 // a. Let nf be ? Get(nf, %Intl%.[[FallbackSymbol]]).
966 OperationResult operationResult = JSTaggedValue::GetProperty(thread, nf, key);
970 // 3. Perform ? RequireInternalSlot(nf, [[InitializedNumberFormat]]).
975 return nf;