java.lang.Object
org.htmlunit.javascript.NativeFunctionToStringFunction
Replacement (in fact a wrapper) for Rhino's native toString function on Function prototype
allowing to produce the desired formatting.
- Author:
- Marc Guillemot, Ronald Brill, Ahmed Ashour
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidinstallFix(org.htmlunit.corejs.javascript.VarScope scope, BrowserVersion browserVersion) Install the wrapper in place of the native toString function on Function's prototype.
-
Method Details
-
installFix
public static void installFix(org.htmlunit.corejs.javascript.VarScope scope, BrowserVersion browserVersion) Install the wrapper in place of the native toString function on Function's prototype.- Parameters:
scope- the scopebrowserVersion- the simulated browser
-