Skip to content

Commit 98011af

Browse files
Updated polyscript wth latest MicroPython (#2454)
1 parent e976967 commit 98011af

3 files changed

Lines changed: 16 additions & 24 deletions

File tree

core/package-lock.json

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

core/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pyscript/core",
3-
"version": "0.7.17",
3+
"version": "0.7.18",
44
"type": "module",
55
"description": "PyScript",
66
"module": "./index.js",
@@ -71,7 +71,7 @@
7171
"@webreflection/utils": "^0.1.1",
7272
"add-promise-listener": "^0.1.3",
7373
"basic-devtools": "^0.1.6",
74-
"polyscript": "^0.20.9",
74+
"polyscript": "^0.20.11",
7575
"sticky-module": "^0.1.1",
7676
"to-json-callback": "^0.1.1",
7777
"type-checked-collections": "^0.1.7"

core/tests/javascript/worker-symbols.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
symbol = js.Symbol.iterator
2222

23-
if js.getSymbol(symbol, []) and js.hasSymbol(symbol, []) and js.hasIterator([]):
23+
if js.getSymbol(symbol, []) != None and js.hasSymbol(symbol, []) and js.hasIterator([]):
2424
js.document.documentElement.classList.add("main")
2525
</script>
2626
<script type="mpy" worker>
@@ -29,7 +29,7 @@
2929

3030
symbol = js.Symbol.iterator
3131

32-
if window.getSymbol(symbol, []) and window.hasSymbol(symbol, []) and window.hasIterator([]):
32+
if window.getSymbol(symbol, []) != None and window.hasSymbol(symbol, []) and window.hasIterator([]):
3333
window.document.documentElement.classList.add("worker")
3434
</script>
3535
</head>

0 commit comments

Comments
 (0)