webworker-threads
Advanced tools
Comparing version 0.7.12 to 0.7.13
@@ -0,1 +1,6 @@ | ||
## 0.7.13 | ||
* Allows overriding of console.log, console.error, fs.readFileSync (@ncthbrt) | ||
* Fixes a tiny memory leak in BSON destruction. (@823639792) | ||
## 0.7.12 | ||
@@ -2,0 +7,0 @@ |
{ | ||
"name": "webworker-threads", | ||
"version": "0.7.12", | ||
"version": "0.7.13", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "description": "Lightweight Web Worker API implementation with native threads", |
19
test.js
@@ -6,19 +6,4 @@ // Generated by LiveScript 1.3.1 | ||
w = new Worker(function(){ | ||
return this.onmessage = function(arg$){ | ||
var max, i$, n, j$, to$, i; | ||
max = arg$.data.max; | ||
search: for (i$ = 2; i$ <= max; ++i$) { | ||
n = i$; | ||
for (j$ = 2, to$ = Math.sqrt(n); j$ <= to$; ++j$) { | ||
i = j$; | ||
if (!(n % i)) { | ||
continue search; | ||
} | ||
} | ||
postMessage({ | ||
result: n | ||
}); | ||
} | ||
throw 'done'; | ||
}; | ||
importScripts('test-imported-script.js'); | ||
return this.onmessage = foo; | ||
}); | ||
@@ -25,0 +10,0 @@ w.onmessage = function(arg$){ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
242020
110
1863