Hi
   I was having trouble with hotmail.com, which uses the "abstract"
keyword in its script. The use of the keyword is on a function. For
example:
<script>
      function f1()
      {
          document.writeln("test me function" + "<br>");
      }
      f1.abstract;
  </script>

I would like to know what exactly the definition of the "abstract"
keyword in JS is?
On doing some research I found that "abstract" is just a reserved
keyword for future use.

On sending the hotmail script through Rhino engine I found that it
does not completely parse the script as it throws an error when trying
to parse the "abstract" keyword. The error message is "missing name
after . operator"
On debugging within Rhino src code I found that in the class \src\org
\mozilla\javascript\TokenStream.java, method stringToKeyword(String),
we are setting the id to reserved (126) if the abstract keyword is
used.
case 'a': X="abstract";id=Id_abstract; break L;
The above is the line where the abstract keyword is handled in Rhino
in the class & method mentioned above it.

I commented out the above line code which led the Rhino engine to
parse the rest of the script.

I would like to know what would be the best way to implement support
for the "abstract" keyword, or rather knowing the definition/use of
this keyword would also be helpful.

Thanks
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino

Reply via email to