Here is what I\'d like to do:
function a() { // ... } function b() { // Some magic, return a new object. } var c = b(); c instanceof b // -> true c
In a javascript bookmarklet, you could use eval(unescape("...")) to create object without "new" operator:
javascript:xhr=eval(unescape('new\x20XMLHttpRequest();'));alert(xhr);