On 2008.06.11., at 11:17, chris idr wrote:

> What javascript static objects does rhino implement?
> ie the util object is a static javascript object but i have created  
> the
> context and initiated the standard objects.
> what are the std objects?

Standard objects are the objects required in any conformant ECMA-262  
implementation: Object, Function, Error, Array, String, Boolean,  
Number, Date, Math, RegExp, Global.

XML, XMLList, Namespace, and QName are also defined since Rhino  
implements E4X.

Finally, Rhino adds few more proprietary ones: Packages, java, javax,  
org, com, edu, net, getClass, JavaAdapter, JavaImporter, and  
Continuation.

>
> and how do i make rhino add the util object to the environment?

After you called initStandardObjects(), you can manually add any  
further objects to the resulting scope using  
ScriptableObject.putProperty().

Attila.

>
>
>
> Kind Regards
>
> Chris wade
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino

Reply via email to