Skip to content
Snippets Groups Projects
Commit ef0b0f8f authored by Jason Mulligan's avatar Jason Mulligan
Browse files

Missed a 0 padding `JSON.stringify()`

parent d39f2133
No related branches found
No related tags found
No related merge requests found
......@@ -64,7 +64,7 @@ var Worker = function () {
}, {
key: "postMessage",
value: function postMessage(msg) {
this.child.send(JSON.stringify({ data: msg }));
this.child.send(JSON.stringify({ data: msg }, null, 0));
}
}, {
key: "terminate",
......
{
"name": "tiny-worker",
"version": "2.0.2",
"version": "2.0.3",
"description": "Tiny WebWorker for Server",
"main": "lib/index.js",
"scripts": {
......
......@@ -48,7 +48,7 @@ class Worker {
}
postMessage (msg) {
this.child.send(JSON.stringify({data: msg}));
this.child.send(JSON.stringify({data: msg}, null, 0));
}
terminate () {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment