private static Rhino.NativeScript RealThis(Scriptable thisObj, IdFunctionObject f) { if (!(thisObj is Rhino.NativeScript)) { throw IncompatibleCallError(f); } return (Rhino.NativeScript)thisObj; }