restructuring of stdlibs

This commit is contained in:
2025-01-24 22:37:52 +02:00
parent f16d088646
commit 3c4d05abd4
18 changed files with 293 additions and 187 deletions

View File

@@ -1,5 +1,5 @@
import { buffer } from "../primordials.ts";
import { abstractIgnore, TypedArray, typedArrayFuncs } from "./TypedArray.ts";
import { token, TypedArray, typedArrayFuncs } from "./TypedArray.ts";
const factory = buffer.int32;
const funcs = typedArrayFuncs(4, factory);
@@ -19,7 +19,7 @@ export class Int32Array extends TypedArray {
}
public constructor(obj: any, start?: number, end?: number) {
super(abstractIgnore);
super(token);
return funcs.construct(obj, start, end) as any;
}
}