Skip to content

Commit 482bb64

Browse files
committed
Fix #60 - Updated coincident so that globals are transformed too
1 parent 52ba005 commit 482bb64

File tree

6 files changed

+53
-27
lines changed

6 files changed

+53
-27
lines changed

docs/core.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/core.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 20 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@
3737
"license": "APACHE-2.0",
3838
"devDependencies": {
3939
"@node-loader/import-maps": "^1.1.0",
40-
"@playwright/test": "^1.38.1",
40+
"@playwright/test": "^1.39.0",
4141
"@rollup/plugin-node-resolve": "^15.2.3",
4242
"@rollup/plugin-terser": "^0.4.4",
4343
"ascjs": "^6.0.2",
4444
"c8": "^8.0.1",
4545
"chokidar": "^3.5.3",
4646
"eslint": "^8.51.0",
47-
"linkedom": "^0.15.4",
47+
"linkedom": "^0.15.6",
4848
"rollup": "^4.0.2",
4949
"static-handler": "^0.4.3",
5050
"typescript": "^5.2.2"
@@ -77,11 +77,11 @@
7777
"@ungap/with-resolvers": "^0.1.0",
7878
"basic-devtools": "^0.1.6",
7979
"codedent": "^0.1.2",
80-
"coincident": "^0.13.5",
80+
"coincident": "^0.13.8",
8181
"html-escaper": "^3.0.3",
8282
"sticky-module": "^0.1.0"
8383
},
8484
"worker": {
85-
"blob": "sha256-704aE8aK4Uw8zQP/aNqDV7vYYSPe+xl2V6W8mI5d3W0="
85+
"blob": "sha256-PweW1P3DtFylmqBJLEhcaLy+lnVgAEAuGj61dUlQIgY="
8686
}
8787
}

test/array.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<title>Polyscript</title>
5+
<script type="module" src="../core.js"></script>
6+
</head>
7+
<body>
8+
<script>
9+
function aFunc(myArray) {
10+
console.log(myArray[0], myArray[1])
11+
}
12+
</script>
13+
<script type="module">
14+
import { XWorker } from "../core.js";
15+
16+
new XWorker("./array.py", { type: "pyodide"});
17+
</script>
18+
</body>
19+
</html>

test/array.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import polyscript
2+
import pyodide
3+
4+
f = polyscript.xworker.window.aFunc
5+
6+
print("here")
7+
f([1,2])

0 commit comments

Comments
 (0)