Initializing standard objects
•
Scriptable scope = cx.initStandardObjects(null);
•
•
Initializes the standard objects (
Object
,
Function
, etc.)
•
Must be done before scripts can be executed
•
Returns a scope object that we use in later
calls
•