Thank you for the very clear and complete answer!
Reading it I start thinking that I am simply misunderstanding the way ClearScript works and worrying about a problem that does not exist. I'd make an example, let's assume this is the script to be executed (ho=an host object exposed which has 4 methods):
Does the engine recognize that Method3 call is syntactically wrong before starting the execution or when the 3-rd line is processed??
And also if this is the script:
Best regards
Tomaso Tosolini
Reading it I start thinking that I am simply misunderstanding the way ClearScript works and worrying about a problem that does not exist. I'd make an example, let's assume this is the script to be executed (ho=an host object exposed which has 4 methods):
ho.Method1("One");How do things go in this case?
ho.Method2("Two");
hoMethod3("Three"); // the "dot" is missing - real syntax error
ho.Method4("Four");
Does the engine recognize that Method3 call is syntactically wrong before starting the execution or when the 3-rd line is processed??
And also if this is the script:
ho.Method1("One");Does it recognize that Method34 doesn't exist before starting the execution or when the 3-rd line is processed??
ho.Method2("Two");
ho.Method34("Three"); // Typo, Method34 doesn't exist - syntax is correct (? maybe it's not from ClearScript point of view??), but host object doesn't expose this functionality
ho.Method4("Four");
Best regards
Tomaso Tosolini