We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21fc6f1 commit 7409480Copy full SHA for 7409480
tests/js/js2py/object-mutation.simple
@@ -20,15 +20,15 @@ python.exec(pcode);
20
const fun = python.eval("change_and_return");
21
const obj2 = fun(obj);
22
23
-if (obj.a !== 5 && obj2["a"] !== 5)
+if (obj.a !== 5 || obj2["a"] !== 5)
24
{
25
console.error('Object isn\'t sharing memory.');
26
throw new Error('Test failed');
27
}
28
29
obj.a = 1000;
30
31
-if (obj.a !== 1000 && obj2["a"] !== 1000)
+if (obj.a !== 1000 || obj2["a"] !== 1000)
32
33
34
0 commit comments