diff options
author | Tim Ramlot <42113979+inteon@users.noreply.github.com> | 2021-05-11 21:09:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-11 21:09:09 +0200 |
commit | 635253bd3a3895f49e6c9606beb852da22fee205 (patch) | |
tree | cec9d75354b4e985a376f888564ecb63c99f2643 /core/bindings.rs | |
parent | 0d319161bc19a520df653bc0c8386f14a68efbdb (diff) |
feat(runtime/worker): Structured cloning worker message passing (#9323)
This commit upgrade "Worker.postMessage()" implementation to use
structured clone algorithm instead of non-spec compliant JSON serialization.
Diffstat (limited to 'core/bindings.rs')
-rw-r--r-- | core/bindings.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/bindings.rs b/core/bindings.rs index edf115d27..f6c94b335 100644 --- a/core/bindings.rs +++ b/core/bindings.rs @@ -553,7 +553,7 @@ fn deserialize( match value { Some(deserialized) => rv.set(deserialized), None => { - let msg = v8::String::new(scope, "string too long").unwrap(); + let msg = v8::String::new(scope, "could not deserialize value").unwrap(); let exception = v8::Exception::range_error(scope, msg); scope.throw_exception(exception); } |