mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 15:28:39 +09:00
Tabs -> Spaces (no code change)
This commit is contained in:
parent
bd3135ad35
commit
8dcf847a45
2 changed files with 4 additions and 4 deletions
|
|
@ -5752,7 +5752,7 @@ CopyArray(JSContext* cx, HandleArrayObject arr, MutableHandleValue result)
|
|||
ArrayObject* nobj = NewFullyAllocatedArrayTryReuseGroup(cx, arr, length, TenuredObject);
|
||||
if (!nobj)
|
||||
return false;
|
||||
|
||||
|
||||
MOZ_ASSERT(arr->isNative());
|
||||
MOZ_ASSERT(nobj->isNative());
|
||||
MOZ_ASSERT(nobj->as<NativeObject>().getDenseInitializedLength() == 0);
|
||||
|
|
@ -5763,7 +5763,7 @@ CopyArray(JSContext* cx, HandleArrayObject arr, MutableHandleValue result)
|
|||
|
||||
const Value* vp = arr->as<NativeObject>().getDenseElements();
|
||||
nobj->as<NativeObject>().initDenseElements(0, vp, length);
|
||||
|
||||
|
||||
result.setObject(*nobj);
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2480,8 +2480,8 @@ js::array_splice_impl(JSContext* cx, unsigned argc, Value* vp, bool returnValueI
|
|||
/* Steps 10-11. */
|
||||
DebugOnly<DenseElementResult> result =
|
||||
CopyDenseElements(cx, &arr->as<NativeObject>(),
|
||||
&obj->as<NativeObject>(), 0,
|
||||
actualStart, actualDeleteCount);
|
||||
&obj->as<NativeObject>(), 0,
|
||||
actualStart, actualDeleteCount);
|
||||
MOZ_ASSERT(result.value == DenseElementResult::Success);
|
||||
|
||||
/* Step 12 (implicit). */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue