mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
[test] Fix Error Proxy in Node.js 21+ (#35227)
This commit is contained in:
committed by
GitHub
parent
6875c3eab4
commit
1721e73e14
@@ -136,6 +136,13 @@ if (process.env.REACT_CLASS_EQUIVALENCE_TEST) {
|
||||
}
|
||||
return Reflect.set(target, key, value, receiver);
|
||||
},
|
||||
get(target, key, receiver) {
|
||||
if (key === 'stack') {
|
||||
// https://github.com/nodejs/node/issues/60862
|
||||
return Reflect.get(target, key);
|
||||
}
|
||||
return Reflect.get(target, key, receiver);
|
||||
},
|
||||
});
|
||||
originalErrorInstances.set(proxy, error);
|
||||
return proxy;
|
||||
|
||||
Reference in New Issue
Block a user