Using native code functions as JavaScript objects in WebKit
问题 I'm unable to use native code functions as JavaScript objects in WebKit-based browsers. Is it impossible to alias these functions directly? This is easiest to explain by example, so here is what I am running in the Developer Tools console: console.warn; // Outputs: // function warn() { // [native code] // } console.warn("console.warn"); // Outputs: "console.warn" var _c = console; _c.warn("_c.warn"); // Outputs: "_c.warn" var _w = console.warn; _w("_w"); // Outputs: "TypeError: Type error" on