diff --git a/tests/pure/web.structured-clone.js b/tests/pure/web.structured-clone.js index 8184441f0f9d..79671a51d58e 100644 --- a/tests/pure/web.structured-clone.js +++ b/tests/pure/web.structured-clone.js @@ -30,7 +30,8 @@ QUnit.module('structuredClone', () => { cloneTest(value, (orig, clone) => { assert.notEqual(orig, clone, 'clone should have different reference'); assert.same(typeof clone, 'object', 'clone should be an object'); - assert.same(getPrototypeOf(orig), getPrototypeOf(clone), 'clone should have same prototype'); + // https://github.com/qunitjs/node-qunit/issues/146 + assert.ok(getPrototypeOf(orig) === getPrototypeOf(clone), 'clone should have same prototype'); verifyFunc(orig, clone); }); } diff --git a/tests/tests/web.structured-clone.js b/tests/tests/web.structured-clone.js index 4e9c6e4d81dc..139b036c2ef7 100644 --- a/tests/tests/web.structured-clone.js +++ b/tests/tests/web.structured-clone.js @@ -23,7 +23,8 @@ QUnit.module('structuredClone', () => { cloneTest(value, (orig, clone) => { assert.notEqual(orig, clone, 'clone should have different reference'); assert.same(typeof clone, 'object', 'clone should be an object'); - assert.same(getPrototypeOf(orig), getPrototypeOf(clone), 'clone should have same prototype'); + // https://github.com/qunitjs/node-qunit/issues/146 + assert.ok(getPrototypeOf(orig) === getPrototypeOf(clone), 'clone should have same prototype'); verifyFunc(orig, clone); }); }