Skip to content

Commit 8faa068

Browse files
committed
Fix general bug with the constructor registry
Since 9260316 jsdom has not worked, seemingly due to some weird interaction between Symbol.for and VM context objects. This seems to fix things, and it's not clear why we used a cross-realm symbol for this anyway.
1 parent 1f99bb2 commit 8faa068

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/output/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function newObjectInRealm(globalObject, object) {
2929
const wrapperSymbol = Symbol("wrapper");
3030
const implSymbol = Symbol("impl");
3131
const sameObjectCaches = Symbol("SameObject caches");
32-
const ctorRegistrySymbol = Symbol.for("[webidl2js] constructor registry");
32+
const ctorRegistrySymbol = Symbol("[webidl2js] constructor registry");
3333

3434
const AsyncIteratorPrototype = Object.getPrototypeOf(Object.getPrototypeOf(async function* () {}).prototype);
3535

0 commit comments

Comments
 (0)