Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
c2b980c
Make node_compat config migration lossless and strict [skip ci]
noise64 Nov 16, 2026
ad33f05
Run CI
noise64 Nov 16, 2026
b011485
Add newer node_compat common helpers and sqlite fixtures [skip ci]
noise64 Nov 16, 2026
5b1fa1b
Run CI
noise64 Nov 16, 2026
448c803
Merge node-compat-common-helpers into node-26-target [skip ci]
noise64 Nov 16, 2026
5377d57
Report Node 26.13.1 process metadata [skip ci]
noise64 Nov 16, 2026
a77af64
Match moved node_compat subtests by source [skip ci]
noise64 Nov 16, 2026
5fb5cd4
Merge strict-node-compat-migration into node-26-target [skip ci]
noise64 Nov 16, 2026
459007e
Switch node_compat suite to Node 26.13.1 [skip ci]
noise64 Nov 16, 2026
aa1b673
Document the Node 26.13.1 switch [skip ci]
noise64 Nov 16, 2026
2467523
Report the Node 26 LTS release name [skip ci]
noise64 Nov 16, 2026
6bfc0c4
Run CI
noise64 Nov 16, 2026
b3b605c
Report AEAD authentication failures as Node does [skip ci]
noise64 Nov 16, 2026
5ef6e6e
Validate key encoding options as Node does [skip ci]
noise64 Nov 16, 2026
950b9c0
Report WebCrypto key and random value errors as Node does [skip ci]
noise64 Nov 16, 2026
2256afc
Validate crypto arguments as Node 26 does [skip ci]
noise64 Nov 16, 2026
85600f7
Report changed same-name subtests matched by position [skip ci]
noise64 Nov 16, 2026
1359ce9
Merge strict-node-compat-migration into node-26-target [skip ci]
noise64 Nov 16, 2026
1e529ff
Merge node-26-target into node-26-crypto-errors [skip ci]
noise64 Nov 16, 2026
198a339
Deliver one-shot sign and verify errors through the callback [skip ci]
noise64 Nov 17, 2026
e0772f3
Check one-shot sign and verify key types before the job [skip ci]
noise64 Nov 17, 2026
d37588e
Require decisions for changed subtests matched by position [skip ci]
noise64 Nov 17, 2026
1d4689c
Reject move targets the runner does not select [skip ci]
noise64 Nov 17, 2026
57656e1
Merge strict-node-compat-migration into node-26-target [skip ci]
noise64 Nov 18, 2026
454e7f7
Merge node-26-target into node-26-crypto-errors [skip ci]
noise64 Nov 18, 2026
5f0fbe0
Relabel shifted Node 26 subtests by content [skip ci]
noise64 Nov 18, 2026
c9e18f6
Let move decisions label new destinations [skip ci]
noise64 Nov 19, 2026
1e21c8f
Make fs.Dir path a brand-checked getter [skip ci]
noise64 Nov 20, 2026
707d682
Make Readable.read return one chunk at a time [skip ci]
noise64 Nov 20, 2026
67c1e15
Correct Node 26 mapping record from source reads [skip ci]
noise64 Nov 20, 2026
0067f89
Run CI
noise64 Nov 20, 2026
f4bd62f
Merge node-26-target into node-26-fs-dir-path [skip ci]
noise64 Nov 20, 2026
2bf41de
Merge node-26-target into node-26-readable-read-chunk [skip ci]
noise64 Nov 20, 2026
c419ddb
Vendor Node 26 trace_events tests [skip ci]
noise64 Nov 20, 2026
87132f2
Merge node-26-target into node-26-fs-dir-path [skip ci]
noise64 Nov 20, 2026
0e00bb2
Merge node-26-target into node-26-readable-read-chunk [skip ci]
noise64 Nov 20, 2026
48c3b3e
Run CI
noise64 Nov 20, 2026
65e5330
Merge node-26-crypto-errors into node-26-target [skip ci]
noise64 Nov 23, 2026
335ac52
Merge node-26-fs-dir-path into node-26-target [skip ci]
noise64 Nov 23, 2026
b768c28
Merge node-26-readable-read-chunk into node-26-target [skip ci]
noise64 Nov 23, 2026
59cdaa0
Port Node 26 crypto key and webcrypto behavior [skip ci]
noise64 Nov 23, 2026
3f0086c
Port Node 26 util inspect, styleText and path behavior [skip ci]
noise64 Nov 23, 2026
2664145
Port Node 26 url, buffer, encoding and sqlite behavior [skip ci]
noise64 Nov 23, 2026
339eecf
Port Node 26 module loading and require TLA errors [skip ci]
noise64 Nov 23, 2026
4d71729
Align node compat shims and config with Node 26 tests [skip ci]
noise64 Nov 23, 2026
9e7436d
Port Node 26 assert and util deep equality [skip ci]
noise64 Nov 23, 2026
cf04464
Port Node 26 inspect proxies, error keys and vm modules [skip ci]
noise64 Nov 23, 2026
f098950
Port Node 26 crypto errors and QuotaExceededError [skip ci]
noise64 Nov 23, 2026
2caaf3a
Port Node 26 require(esm) and import attribute errors [skip ci]
noise64 Nov 23, 2026
1e28ca5
Port Node 26 fs handle and zlib flush behavior [skip ci]
noise64 Nov 23, 2026
07f6219
Port Node 26 test runner assertions and hooks [skip ci]
noise64 Nov 23, 2026
233e1d3
Port Node 26 assert partial and brand checks [skip ci]
noise64 Nov 23, 2026
2fc6580
Port Node 26 stream composition and web stream fixes [skip ci]
noise64 Nov 23, 2026
23f1e65
Port Node 26 fs, net, dns and events fixes [skip ci]
noise64 Nov 23, 2026
7c88b78
Port Node 26 http header and response completion fixes [skip ci]
noise64 Nov 23, 2026
399e2f1
Name async assert frames after their receiver [skip ci]
noise64 Nov 23, 2026
246676f
Accept --no-webstorage in child emulation [skip ci]
noise64 Nov 23, 2026
24850f4
Retire the Node 22.14.0 baseline gap record [skip ci]
noise64 Nov 23, 2026
872aa3d
Merge main into node-26-target [skip ci]
noise64 Nov 23, 2026
8c2c743
Run CI
noise64 Nov 23, 2026
c1b5436
Update runtime tests for Node 26 behavior
noise64 Nov 23, 2026
7d20616
Run subtest afterEach hooks once
noise64 Nov 24, 2026
d235247
Prefix ReadableStream.from iterator error as Node does
noise64 Nov 24, 2026
00d779a
Fix SQLite prepare options [skip ci]
noise64 Nov 24, 2026
9747a85
Run SQLite CI
noise64 Nov 24, 2026
7d1e932
Fix SQLite value contracts [skip ci]
noise64 Nov 24, 2026
69217c1
Preserve Node baseline coverage and migration decisions
noise64 Nov 26, 2026
fad0d5f
Merge main into Node 26 branch
noise64 Nov 26, 2026
d164f44
Isolate SQLite prepare options
noise64 Nov 26, 2026
d3e9d83
Merge Node 26 foundation into SQLite branch
noise64 Nov 26, 2026
c7cb37d
Fix async hooks and raw P-521 imports
noise64 Nov 26, 2026
242970e
Merge pull request #231 from golemcloud/fix-sqlite-value-contracts
vigoo Nov 27, 2026
df908bf
Merge main into node-26-target
noise64 Nov 27, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 49 additions & 1 deletion crates/wasm-rquickjs/skeleton/src/builtin/abort_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,54 @@ class DOMException extends Error {
}
}

function toQuotaDouble(options, key) {
const value = +options[key];
if (!Number.isFinite(value)) {
throw new TypeError(`Cannot convert options.${key} to a double: the value is ${Number.isNaN(value) ? 'NaN' : 'Infinity'}`);
}
if (value < 0) {
throw new RangeError(`options.${key} must not be negative`);
}
return value;
}

// https://webidl.spec.whatwg.org/#quotaexceedederror (Node 26 global)
class QuotaExceededError extends DOMException {
#quota;
#requested;

constructor(message = '', options = {__proto__: null}) {
super(message, 'QuotaExceededError');
let quota = null;
let requested = null;
if (options !== null && options !== undefined) {
if ('quota' in options) quota = toQuotaDouble(options, 'quota');
if ('requested' in options) requested = toQuotaDouble(options, 'requested');
}
if (quota !== null && requested !== null && requested < quota) {
throw new RangeError('options.requested must not be less than options.quota');
}
this.#quota = quota;
this.#requested = requested;
}

get quota() {
if (!(#quota in this)) throw new TypeError('Value of "this" must be of type QuotaExceededError');
return this.#quota;
}

get requested() {
if (!(#requested in this)) throw new TypeError('Value of "this" must be of type QuotaExceededError');
return this.#requested;
}
}

Object.defineProperties(QuotaExceededError.prototype, {
[Symbol.toStringTag]: {__proto__: null, configurable: true, value: 'QuotaExceededError'},
quota: {__proto__: null, enumerable: true, configurable: true},
requested: {__proto__: null, enumerable: true, configurable: true},
});

// We need access to the Event _eventTrusted WeakMap to mark events as trusted.
// Import the _eventTrusted symbol from events module.
import { _eventTrusted, Event } from 'node:events';
Expand Down Expand Up @@ -379,4 +427,4 @@ Object.defineProperty(AbortSignal.prototype, Symbol.toStringTag, {
configurable: true,
});

export { AbortController, AbortSignal, DOMException };
export { AbortController, AbortSignal, DOMException, QuotaExceededError };
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ pub const ABORT_CONTROLLER_JS: &str = include_str!("abort_controller.js");

// JS code wiring the abort_controller module into the global context
pub const WIRE_JS: &str = r#"
import { AbortController, AbortSignal, DOMException } from '__wasm_rquickjs_builtin/abort_controller';
import { AbortController, AbortSignal, DOMException, QuotaExceededError } from '__wasm_rquickjs_builtin/abort_controller';
globalThis.AbortController = AbortController;
globalThis.AbortSignal = AbortSignal;
globalThis.DOMException = DOMException;
globalThis.QuotaExceededError = QuotaExceededError;
"#;
Loading
Loading