In general, I notice that Firefox Minefield is much stricter than Chrome Canary when compiling my Javascript. Chrome Canary missed them. For example, it notifies me undeclared variables, assigning to a read-only property, etc.
I use the following comment on my shader
// Light structure
struct structPointLight {
vec4 position;
vec4 diffuse;
vec4 specular;
vec4 ambient;
float constant_attenuation;
float linear_attenuation;
float quadratic_attenuation;
};
Firefox Minefield issues error/warning message: not well-formed on the “// Light structure” on the Error Console.
Chrome Canary issues no warning on its console.
I then removed the “// Light structure” as the following:
struct structPointLight {
vec4 position;
vec4 diffuse;
vec4 specular;
vec4 ambient;
float constant_attenuation;
float linear_attenuation;
float quadratic_attenuation;
};
Firefox now issues an error on the "struct ". Chrome issues no error.
The program works just fine. I am just curious about the above error/warning.
Any pointer is appreciated.
Thanks in advance for your help.