Closed ackava closed 3 years ago
- Android does not have method for DefineDynamicModule(name, boolean), so I have added small check.
No need for this, just make sure the ENABLE_DEBUGGING compiler flag is not present when compiling.
- FIXED, MemberAccessExpression does not tell what is undefined, consider a = b.c.d in this expression if b is undefined, it should return error cannot read property d of undefined. This helps in debugging quicker.
I have nothing against making the error messages better, but it needs to be done in such a way as to not bloat the resulting code generation. (Or at least the benchmarks should show no slowdown.)
- FIXED, Object.getPrototypeOf should return inherited function as it does correctly in Chrome, you can check this script.
Both setPrototypeOf() and real class support are now in master, so this should be fully fixed now.
Is there anything left for this PR to address, or can I close it?
@paulbartrum Yes you can close this.
Android does not have method for
DefineDynamicModule(name, boolean)
, so I have added small check.FIXED, MemberAccessExpression does not tell what is undefined, consider
a = b.c.d
in this expression ifb
is undefined, it should return errorcannot read property
dof undefined
. This helps in debugging quicker.FIXED, Object.getPrototypeOf should return inherited function as it does correctly in Chrome, you can check this script.
This error has been fixed and a unit test has been added to test this case.