Skip to content

worker threads cannot access the timer object #135

@jdmarshall

Description

@jdmarshall
// Deserialize the benchmark function
function deserializeBenchmark(benchmark) {
	benchmark.fn = new Function(benchmark.fn);
}

Should be

// Deserialize the benchmark function
function deserializeBenchmark(benchmark) {
	benchmark.fn = new Function("timer", benchmark.fn);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions