function abs_stub( v )
{
}
function newabs( v )
{
abs_stub( v )
return v*v
}
test = new TestClass();
test.abs(-10);
abs_stub = test.abs;
test.abs = newabs;
test.abs(-2);
I want to be able to call the original function that newabs replaced. When I
do it this way it calls the correct function but JS_GetInstancePrivate
returns a NULL instead of the pointer to my native object. Maybe I shouldn't
be doing this but it does reflect how I'm doing things in my C++ code.
I really don't know what I'm doing. :)