Lines Matching refs:nf
106 // 1. Let nf be this value.
108 // 2. If Type(nf) is not Object, throw a TypeError exception.
110 THROW_TYPE_ERROR_AND_RETURN(thread, "nf is not object", JSTaggedValue::Exception());
112 // 3. Let nf be ? UnwrapNumberFormat(nf).
113 JSHandle<JSTaggedValue> nf = JSNumberFormat::UnwrapNumberFormat(thread, thisValue);
115 if (nf->IsUndefined()) {
116 THROW_TYPE_ERROR_AND_RETURN(thread, "nf is not object", JSTaggedValue::Exception());
119 JSHandle<JSNumberFormat> typpedNf = JSHandle<JSNumberFormat>::Cast(nf);
121 // 4. If nf.[[BoundFormat]] is undefined, then
123 // b. Set F.[[NumberFormat]] to nf.
124 // c. Set nf.[[BoundFormat]] to F.
141 // 1. Let nf be the this value.
142 JSHandle<JSTaggedValue> nf = GetThis(argv);
143 // 2. Perform ? RequireInternalSlot(nf, [[InitializedNumberFormat]]).
144 if (!nf->IsJSNumberFormat()) {
152 JSNumberFormat::FormatNumericToParts(thread, JSHandle<JSNumberFormat>::Cast(nf), x.GetTaggedValue());
162 // 1. Let nf be this value.
164 // 2. If Type(nf) is not Object, throw a TypeError exception.
168 // 3. Let nf be ? UnwrapNumberFormat(nf).
169 JSHandle<JSTaggedValue> nf = JSNumberFormat::UnwrapNumberFormat(thread, thisValue);
171 // Perform ? RequireInternalSlot(nf, [[InitializedNumberFormat]]).
172 if (!nf->IsJSNumberFormat()) {
173 THROW_TYPE_ERROR_AND_RETURN(thread, "nf is not JSNumberFormat", JSTaggedValue::Exception());
184 // Let v be the value of nf's internal slot whose name is the Internal Slot value of the current row.
187 JSNumberFormat::ResolvedOptions(thread, JSHandle<JSNumberFormat>::Cast(nf), options);
197 // 1. Let nf be F.[[NumberFormat]].
198 JSHandle<JSTaggedValue> nf(thread, intlBoundFunc->GetNumberFormat());
199 // 2. Assert: Type(nf) is Object and nf has an [[InitializedNumberFormat]] internal slot.
200 ASSERT(nf->IsJSObject() && nf->IsJSNumberFormat());
206 // 5 Return ? FormatNumeric(nf, x).
208 JSNumberFormat::FormatNumeric(thread, JSHandle<JSNumberFormat>::Cast(nf), x.GetTaggedValue());