Domanda

Sto iniziando con JavaScript e il motore Rhino. Conosco la specifica ECMAScript 262. Ho bisogno di sapere quali caratteristiche, EG Funzioni/Oggetti/ecc. Sono definite dal motore Rhino Javascript oltre lo standard ECMA. La maggior parte degli esempi è solo caratteristica print, Packages e import* Ma non sono stato in grado di trovare un elenco esaustivo.

È stato utile?

Soluzione

See predefined properties here: https://developer.mozilla.org/en/Rhino_Shell#Predefined_Properties

This is generally the best page about Rhino and it's JS features: https://developer.mozilla.org/en/Rhino_Shell

Altri suggerimenti

This isn't an exhaustive list but I have a compat table of non-standard ES features. Take a look at Rhino column — http://kangax.github.com/es5-compat-table/non-standard/.

Note how Rhino's feature set is pretty close to that of SpiderMonkey (latest JS engine in Firefox). There are differences though. For example, Rhino doesn't have "caller" property on functions, unlike SpiderMonkey. Rhino supports e4x but not expression closures. It looks more or less like a subset of SpiderMonkey, although there might be non-standard features that I'm not aware of (in which case I'd love to add them to the table).

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top