Returns a function wrapping the passed-in function.
var retVal = DiagnosticsBrowser.createSafeFunction(object, func);
Object to create the function's object model.
Function with which to create a safe function.
The function that is created has a prototype in the same object model as the first parameter, and thus cannot be used to get back into the Diagnostics Object Model. This means that it can't be called using function.prototype.constructor(…) to create a new function in the Diagnostics Object Model. It would instead be created in the target object’s object model.