mirror of
https://github.com/micropython/micropython.git
synced 2026-01-07 20:50:14 +01:00
webassembly/objpyproxy: Avoid throwing on symbol or iterator has-check.
JavaScript code uses "Symbol in object" to brand check its own proxies, and such checks should also work on the Python side. Signed-off-by: Andrea Giammarchi <andrea.giammarchi@gmail.com>
This commit is contained in:
committed by
Damien George
parent
16f9d7fdc3
commit
e33a0f4682
@@ -9,3 +9,5 @@ x = []
|
||||
const x = mp.globals.get("x");
|
||||
console.log("no_exist" in x);
|
||||
console.log("sort" in x);
|
||||
console.log(Symbol.toStringTag in x);
|
||||
console.log(Symbol.iterator in x);
|
||||
|
||||
@@ -1,2 +1,4 @@
|
||||
false
|
||||
true
|
||||
false
|
||||
true
|
||||
|
||||
Reference in New Issue
Block a user