I have javascript code for get and set property :
set page(val) { some code.. },
get page() { return currentPageNumber; },
Now i want to use these get and set property in JSNI but an error occur(JavaScript parsing: Missing : after property id) . plz suggest what can i do now???
JSNI code is parsed using (a rather old version of) Rhino, which doesn't support most of ECMAScript 5. You therefore cannot use ECMAScript 5 syntax, such as the get
and set
operators, within JSNI methods.