mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
24bf1adacc
In case the exported module is a proxy that has the `getPrototypeOf` or `setPrototypeOf` trap, skip the circular dependencies check. It would otherwise be triggered by the check itself. Fixes: https://github.com/nodejs/node/issues/33334 Signed-off-by: Ruben Bridgewater <ruben@bridgewater.de> PR-URL: https://github.com/nodejs/node/pull/33338 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Zeyu Yang <himself65@outlook.com>
11 lines
214 B
JavaScript
11 lines
214 B
JavaScript
const assert = require('assert');
|
|
|
|
const object = require('./warning-skip-proxy-traps-a.js');
|
|
|
|
assert.throws(() => {
|
|
object.missingPropProxyTrap;
|
|
}, {
|
|
message: 'get: missingPropProxyTrap',
|
|
name: 'Error',
|
|
});
|