Browse Source

Fix typo for `pow` in `runtime.js`

gingerBill 3 years ago
parent
commit
3b5998af12
1 changed files with 1 additions and 1 deletions
  1. 1 1
      vendor/wasm/js/runtime.js

+ 1 - 1
vendor/wasm/js/runtime.js

@@ -1340,7 +1340,7 @@ function odinSetupDefaultImports(wasmMemoryInterface, consoleElement) {
 			sqrt:    (x) => Math.sqrt(x),
 			sqrt:    (x) => Math.sqrt(x),
 			sin:     (x) => Math.sin(x),
 			sin:     (x) => Math.sin(x),
 			cos:     (x) => Math.cos(x),
 			cos:     (x) => Math.cos(x),
-			pow:     (x) => Math.pow(x),
+			pow:     (x, power) => Math.pow(x, power),
 			fmuladd: (x, y, z) => x*y + z,
 			fmuladd: (x, y, z) => x*y + z,
 			ln:      (x) => Math.log(x),
 			ln:      (x) => Math.log(x),
 			exp:     (x) => Math.exp(x),
 			exp:     (x) => Math.exp(x),