From d58a68c9de222562532b49303f9078ca3103c1b8 Mon Sep 17 00:00:00 2001 From: Kagami Sascha Rosylight Date: Wed, 18 Oct 2023 20:24:39 +0200 Subject: [PATCH] Meta: upgrade webidl2js dependency in reference implementation As of version 17, webidl2js now creates iterators, exceptions and promises in the correct realm. This aligns the reference implementation closer to the standard. --- reference-implementation/lib/ReadableStream-impl.js | 2 +- reference-implementation/lib/TransformStream-impl.js | 2 +- reference-implementation/lib/WritableStream-impl.js | 2 +- reference-implementation/package.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/reference-implementation/lib/ReadableStream-impl.js b/reference-implementation/lib/ReadableStream-impl.js index 6c3b10f7d..5123c8c0d 100644 --- a/reference-implementation/lib/ReadableStream-impl.js +++ b/reference-implementation/lib/ReadableStream-impl.js @@ -15,7 +15,7 @@ exports.implementation = class ReadableStreamImpl { if (underlyingSource === undefined) { underlyingSource = null; } - const underlyingSourceDict = UnderlyingSource.convert(underlyingSource); + const underlyingSourceDict = UnderlyingSource.convert(globalObject, underlyingSource); aos.InitializeReadableStream(this); diff --git a/reference-implementation/lib/TransformStream-impl.js b/reference-implementation/lib/TransformStream-impl.js index aaab20efa..72b79f38f 100644 --- a/reference-implementation/lib/TransformStream-impl.js +++ b/reference-implementation/lib/TransformStream-impl.js @@ -11,7 +11,7 @@ exports.implementation = class TransformStreamImpl { if (transformer === undefined) { transformer = null; } - const transformerDict = Transformer.convert(transformer); + const transformerDict = Transformer.convert(globalObject, transformer); if ('readableType' in transformerDict) { throw new RangeError('Invalid readableType specified'); } diff --git a/reference-implementation/lib/WritableStream-impl.js b/reference-implementation/lib/WritableStream-impl.js index 7d23802d4..86469d750 100644 --- a/reference-implementation/lib/WritableStream-impl.js +++ b/reference-implementation/lib/WritableStream-impl.js @@ -11,7 +11,7 @@ exports.implementation = class WritableStreamImpl { if (underlyingSink === undefined) { underlyingSink = null; } - const underlyingSinkDict = UnderlyingSink.convert(underlyingSink); + const underlyingSinkDict = UnderlyingSink.convert(globalObject, underlyingSink); if ('type' in underlyingSinkDict) { throw new RangeError('Invalid type is specified'); } diff --git a/reference-implementation/package.json b/reference-implementation/package.json index 55898438e..e07e8f5ff 100644 --- a/reference-implementation/package.json +++ b/reference-implementation/package.json @@ -18,7 +18,7 @@ "eslint": "^6.8.0", "minimatch": "^3.0.4", "opener": "^1.5.1", - "webidl2js": "^16.2.0", + "webidl2js": "^17.1.0", "wpt-runner": "^5.0.0" } }