public static void init ( Context cx , Scriptable scope , boolean sealed ) throws RhinoException { JSAdapter obj = new JSAdapter ( cx . newObject ( scope ) ) ; obj . setParentScope ( scope ) ; obj . setPrototype ( getFunctionPrototype ( scope ) ) ; obj . isPrototype = true ; ScriptableObject . defineProperty ( scope , "JSAdapter" , obj , ScriptableObject . DONTENUM ) ; }
initializer to setup JSAdapter prototype in the given scope