Enable Emscripten threading for MuJoCo WASM builds.
PiperOrigin-RevId: 863309872 Change-Id: I2edabb386f3abc74e507d0419b136b1586d01241
This commit is contained in:
committed by
Copybara-Service
parent
b073cd2ca4
commit
7418d86eda
@@ -13,6 +13,13 @@
|
||||
// limitations under the License.
|
||||
|
||||
import Jasmine from 'jasmine';
|
||||
import os from 'os';
|
||||
|
||||
if (typeof navigator === 'undefined') {
|
||||
globalThis.navigator = {
|
||||
hardwareConcurrency: os.cpus().length,
|
||||
};
|
||||
}
|
||||
|
||||
const jasmine = new Jasmine();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user