Skip to content

Commit

Permalink
test(node): get test-assert.js working
Browse files Browse the repository at this point in the history
  • Loading branch information
Don Isaac committed Dec 11, 2024
1 parent 704d1b9 commit 710cbf7
Show file tree
Hide file tree
Showing 13 changed files with 3,697 additions and 1,234 deletions.
3 changes: 3 additions & 0 deletions src/bun.js/bindings/ErrorCode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ export default [
["ERR_INVALID_ARG_VALUE", TypeError, "TypeError"],
["ERR_INVALID_PROTOCOL", TypeError, "TypeError"],
["ERR_INVALID_THIS", TypeError, "TypeError"],
["ERR_INVALID_RETURN_VALUE", TypeError, "TypeError"],
["ERR_IPC_CHANNEL_CLOSED", Error, "Error"],
["ERR_IPC_DISCONNECTED", Error, "Error"],
["ERR_MISSING_ARGS", TypeError, "TypeError"],
["ERR_AMBIGUOUS_ARGUMENT", TypeError, "TypeError"],
["ERR_OUT_OF_RANGE", RangeError, "RangeError"],
["ERR_PARSE_ARGS_INVALID_OPTION_VALUE", TypeError, "TypeError"],
["ERR_PARSE_ARGS_UNEXPECTED_POSITIONAL", TypeError, "TypeError"],
Expand All @@ -46,6 +48,7 @@ export default [
["ERR_UNKNOWN_SIGNAL", TypeError, "TypeError"],
["ERR_SOCKET_BAD_PORT", RangeError, "RangeError"],
["ERR_STREAM_RELEASE_LOCK", Error, "AbortError"],
["ERR_UNAVAILABLE_DURING_EXIT", Error, "Error"],

// Bun-specific
["ERR_FORMDATA_PARSE_ERROR", TypeError, "TypeError"],
Expand Down
1 change: 1 addition & 0 deletions src/codegen/bundle-modules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,7 @@ writeIfNotChanged(
(() => {
let dts = `
// GENERATED TEMP FILE - DO NOT EDIT
// generated by ${import.meta.path}
`;

for (let i = 0; i < ErrorCode.length; i++) {
Expand Down
Loading

0 comments on commit 710cbf7

Please sign in to comment.