Enable Emscripten threading for MuJoCo WASM builds.

PiperOrigin-RevId: 863309872
Change-Id: I2edabb386f3abc74e507d0419b136b1586d01241
This commit is contained in:
Google DeepMind
2026-01-30 10:57:12 -08:00
committed by Copybara-Service
parent b073cd2ca4
commit 7418d86eda
6 changed files with 80 additions and 9 deletions
+7
View File
@@ -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();