-
-
Notifications
You must be signed in to change notification settings - Fork 138
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Report a bug
π Search Terms
constructor, duplicate key, prototype collision, ParseError, object literal
π§© Context
- ArkType version: arktype@2.1.29
- TypeScript version: typescript@5.9.3
- Other context: Node.js / Bun
π§βπ» Repro
import { type } from "arktype";
// This throws a "Duplicate key" error because it likely collides
// with the internal Object.prototype.constructor check.
type({ constructor: "string" });Stack Trace
ParseError: Duplicate key "constructor"
at throwError (node_modules\@ark\util\out\errors.js:5:11)
at reduce (node_modules\@ark\schema\out\structure\structure.js:204:21)
at parseNode (node_modules\@ark\schema\out\parse.js:92:30)
at node (node_modules\@ark\schema\out\scope.js:362:22)
at parseObjectLiteral (node_modules\arktype\out\parser\objectLiteral.js:80:33)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
To do