joeking11829 / tiny-js

Automatically exported from code.google.com/p/tiny-js
0 stars 0 forks source link

Variable attribute defines conflict with function. #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. function a (){};
2. b = {};
3. b.a = {};
4. a();

What is the expected output? What do you see instead?
Function "a" should be called. But the error message "Error Expecting 'a' 
to be a function at (line: 1, col: 1)" received.

What version of the product are you using? On what operating system?
Version 1.6 is used on Cent OS 5.4

Please provide any additional information below.
When using dump() to show symbols, found the function "a" is reassigned to 
"{}" by "b.a = {};" call.

Original issue reported on code.google.com by sterow...@gmail.com on 23 Apr 2010 at 7:13

GoogleCodeExporter commented 9 years ago
Sorry, for some reason I didn't notice this in my inbox.

Please see the latest (0.16) version, I added your code and it appears that it 
now passes.

Original comment by pur3m...@googlemail.com on 16 Jul 2010 at 6:27