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:
Andrea Giammarchi
2025-07-02 18:54:21 +02:00
committed by Damien George
parent 16f9d7fdc3
commit e33a0f4682
3 changed files with 10 additions and 0 deletions

View File

@@ -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);

View File

@@ -1,2 +1,4 @@
false
true
false
true