mirror of
https://github.com/stablyai/orca.git
synced 2026-10-30 16:47:34 +00:00
fix(test): let Node-runtime test workers ignore faked parent messages (#35427)
This commit is contained in:
@@ -24,6 +24,7 @@ export function encodeNodeRuntimeMessage(value) {
|
||||
return stringify(value, reducers)
|
||||
}
|
||||
|
||||
// Why pass non-strings through: tests that fake a parent with process.emit('message') reach this listener too.
|
||||
export function decodeNodeRuntimeMessage(text) {
|
||||
return parse(text, revivers)
|
||||
return typeof text === 'string' ? parse(text, revivers) : text
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user