AS3: Incorrect handling of strict equals operator in if vs switch resulting in §§pop

This commit is contained in:
Jindra Petřík
2021-01-18 20:27:05 +01:00
parent 0f75283276
commit b2b54118f2
6 changed files with 34 additions and 3 deletions

View File

@@ -59,6 +59,7 @@ package
TestProperty;
TestRegExp;
TestRest;
TestStrictEquals;
TestStringConcat;
TestStrings;
TestSwitch;

View File

@@ -0,0 +1,21 @@
package tests
{
public class TestStrictEquals
{
public function run() : void
{
var k:int = 6;
if (this.f() !== this.f()){
trace("is eight");
}
}
private function f():String {
return "x";
}
}
}