dart-hello-world

JavaScript performance comparison

Revision 3 of this test case created by Simon

Info

a core library has an initialization cost and an execution one. This test compares the difference between basic JS and Dart for the most simple task ever made: the "Hello World".

It would be nice to test in isolation Dart VM performances VS JS VM performances too ... unfortunately not possible right now in this page.

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
JS as it is
function HelloDartTest() {}
HelloDartTest.testMain = function testMain() {
  printMessage("Hello JavaScripter!");
};
HelloDartTest.testMain();


function printMessage(message) {
  // as is for the current isolate$log function
  return;
  console.log(message);
};
pending…
JS out of Dart
var e;function f(a,b){if(b>=0&&b<a.length)return b;h(i(b))};var k={},aa={};function ba(a,b,c){if(b)a.e=function(){return b.call(c)}}function ca(a,b,c,d){function g(b,g,t,n){return a.call(c,d,b,g,t,n)}ba(g,b,c);return g}function l(a,b){if(a.prototype.__proto__)a.prototype.__proto__=b.prototype;else{var c=function(){};c.prototype=b.prototype;a.prototype=new c;a.prototype.constructor=a}}function da(a,b){return typeof a=="number"&&typeof b=="number"?a+b:a.na(b)}function ea(a){a/=4;return a<0?Math.ceil(a):Math.floor(a)}
function m(a,b){if(a===void 0)return b===void 0;else if(typeof a==typeof b&&typeof a!="object")return a===b;return a.G(b)}function h(a){a&&typeof a=="object"&&Error.captureStackTrace&&Error.captureStackTrace(a);throw a;}function o(){var a=new p;a.g=q("ya",fa,null,void 0);a.va="";a.qa="";a.N=[];h(a)}var s={d:0};
function u(a){if(a===void 0)return"";if(typeof a==="number")return"n"+a;if(typeof a==="boolean")return"b"+(a?1:0);if(typeof a==="string"){var a=ga+a,b=ha[a];b||(b="s"+ ++ia,ha[a]=b);return b}if(typeof a==="function")throw"a function is not a constant expression";a=a.ya;if(a===void 0)throw"internal error: reference to non-canonical constant";return a}var ga=":",ia=0,ha={},ja={};
function v(a){var b;if(a instanceof Array){b=[];for(var c=a.length-1;c>=0;c--)b.push(u(a[c]));b="a"+b.join(",")}else if(a&&a.ka){b=ka();b.j("m");for(var c=true,d=la(ma(a));d.ba(0,s);){var g=na(d);c?c=false:b.j(",");b.j(u(g));b.j(",");b.j(oa(a.A(g)))}b=b.i(0,s)}else b="o"+a.m();c=ga+b;d=ja[c];if(d!=null)return d;a.ya=b;return ja[c]=a};var w=null,pa=null,x=[],y=this,z=typeof y.importScripts!="undefined",qa=z||typeof y.Worker!="undefined",A=0,B=qa,C=false;function ra(a,b,c,d,g){if(a==A){if(a=sa.get(b))(c=a.da.get(c))&&ta(c,a,d,g)}else(z?D:ua.get(a)).postMessage({I:"message",Oa:a,Ha:b,Ka:c,L:d,ea:g})}function ta(a,b,c,d){va(b,function(){var b=B||C?wa(c):c,j=B||C?wa(d):d;if(a.H!=null){var r;var t=a.H;if(t===aa)throw"circular initialization";t!==k?r=t:(a.H=aa,a.H=void 0);r(2,s,b,j)}})}function E(){this.map={};this.d=0}
function xa(a,b,c){if(a.map[b])throw Error("Registry: Elements must be registered only once.");a.map[b]=c;a.d++}function ya(a){var b=ua;a in b.map&&(delete b.map[a],b.d--)}E.prototype.get=function(a){return this.map[a]};E.prototype.contains=function(a){return this.map[a]!==void 0};var ua=new E,sa=new E,za=false;z&&(za=function(a){D.postMessage({I:"print",L:a})});
function Aa(a,b){var c=b.data;switch(c.I){case "start":A=c.id;var d=y[c.wa](),g=c.ea;va(new Ba,function(){var a=B||C?wa(g):g;Ca=w.oa;var b=da(Ca,1);w.oa=b;b=new Da(Ca,void 0);b.g=q("s",Ea,null,void 0);var c=b.P,n=w;n.da.d===0&&xa(sa,n.id,n);xa(n.da,c,b);s.d&&o();c="spawned";n=Da.prototype.fa.call(b);if(n!==void 0&&!(n instanceof Fa))throw"SendPort::send: Illegal replyTo type.";c=B||C?Ga(c):Ha(c);n=B||C?Ga(n):Ha(n);ra(a.v,a.s,a.u,c,n);d.cb(b)});Ia();break;case "spawn-worker":Ja(c.wa,c.lb);break;case "message":ra(c.Oa,
c.Ha,c.Ka,c.L,c.ea);Ia();break;case "close":ya(a.id);a.terminate();Ia();break;case "print":Ka(c.L);break;case "error":throw c.L;}}if(qa)y.onmessage=function(a){Aa(D,a)};var D=new function(){this.id=0};D.postMessage=function(a){y.postMessage(a)};var La=1;function Ba(){this.id=La++;this.La={};this.La.jb=Math.random()*268435455>>>0;this.da=new E;Ma(this,function(){for(var a=0,b=x.length;a<b;a++)x[a]()})}function Ma(a,b){var c=w;w=a;try{b()}finally{w=c}}var Na=[];
function Oa(a,b){this.Ga=a;this.Da=b}function va(a,b){Na.push(new Oa(a,b))}var Pa=A+1,Qa;if(!qa||z)Qa=null;else{var Ra=document.getElementsByTagName("script"),Sa=Ra[Ra.length-1],Ta=Sa.src;if(!Ta)Ta="FIXME:5407062_"+Math.random().toString(),Sa.src=Ta;Qa=Ta}function Ja(a,b){var c=new Worker(Qa);c.onmessage=function(a){Aa(c,a)};var d=Pa++;c.id=d;xa(ua,d,c);c.postMessage({I:"start",id:d,ea:b,wa:a})}
function Ua(){var a;Na.length!=0?(a=Na[0],Na.splice(0,1)):a=void 0;if(a)return Ma(a.Ga,a.Da),true;else{if(z)sa.d===0&&D.postMessage({I:"close"});else if(sa.contains(pa.id)&&ua.d===0&&!qa&&typeof window=="undefined")throw Error("Program exited with open ReceivePorts.");return false}}function Va(){if(typeof window!="undefined"&&window.setTimeout)(function b(){Ua()&&window.setTimeout(b,0)})();else for(;;)if(!Ua())break}
function Ia(){if(z)try{Va()}catch(a){D.postMessage({I:"error",L:""+a})}else Va()};function Wa(a){za?za(a):this.console?this.console.log(a):this.write&&(this.write(a),this.write("\n"))};function F(a,b,c,d,g,j){this.c=a;this.Na=b?b:a;this.l=c;this.mb=d;this.kb=j;this.b={};this.ib=g;this.b[a]=this;!g&&a!="a"&&(this.b.a=Xa)}var G={};F.prototype.w=[];F.prototype.toString=function(){return this.Na};function Ya(a,b){return a.hasOwnProperty(b)?a[b]:null}function Za(a){if(a instanceof Array)return Array.e();switch(typeof a){case "string":return String.e();case "number":return Number.e();case "boolean":return Boolean.e()}return $a}
function q(a,b,c,d){if(a=="a"&&!d)return Xa;var g=H(a,c,null,d),j=Ya(G,g);if(j)return j;a=H(a);j=new F(a,g,c,null,false,d);G[g]=j;b&&b(j,c);return j}function ab(a){var b=I.e(),c=H("b",a,b,void 0),d=Ya(G,c);if(d)return d;d=H("b");d=new F(d,c,a,b,true,void 0);return G[c]=d}function H(a,b,c,d){d&&(a+=":"+d);b&&(a+="<"+b.join(",")+">");c&&(a+="-><"+c+">");return a}function J(a,b){a.g=b;return a}
function K(a,b){if(a)if(a.length>b)return a[b];else throw Error("Missing type arg");return I.e(null,void 0)}function L(a,b){var c=Ya((a.g?a.g:Za(a)).b,b);if(!c)throw Error("internal error: can not find "+b+" in "+JSON.stringify(a));return c.l}function M(a,b){var c=H(a,null,null,b);F.call(this,a,c,null,null,null,b)}l(M,F);var Xa=new M("a"),$a=new M("c");function bb(a){M.call(this,"d",a)}l(bb,M);bb.prototype.e=function(a,b){var c=H("d",null,null,b),d=Ya(G,c);if(d)return d;d=new bb(b);return G[c]=d};
var I=bb.prototype.e();J(Function.prototype,q("b"));function cb(a){if(!(a instanceof Array)){for(var b=a.length,c=Array(b),d=0;d<b;d++)c[d]=a.A(d);a=c}return String.fromCharCode.apply(this,a)};Object.e=function(a,b){return q("a",null,null,b)};Object.n=function(a){var b=Object.e();a.b[b.c]=b};Object.q=function(){};Object.z=function(){};Object.Za=function(){var a={};a.g=Object.e();Object.q.call(a);return a};Object.prototype.G=function(a){return this===a};Object.prototype.h=function(){return"Object"};Object.prototype.i=function(a,b){(b.d||a!=0)&&o();return Object.prototype.h.call(this)};Object.prototype.m=function(){return"a:"+u(this.hb)};function N(a,b){var c=true;if(b==null)b=0,c=false;else if(b<0){var d="negative length "+O(b)+"",g=new P;g.g=q("Ba",db,null,void 0);g.pa=d;h(g)}d=[K(a,0)];d=q("M",null,d,void 0);g=new eb;g.g=d;d=J(Array(b),Array.e((g.g?g.g:Za(g)).l));d.Q=c;return d};Array.e=function(a,b){return q("f",Array.r,a,b)};Array.r=function(a,b){Array.n(a,b);a.w=[]};Array.n=function(a,b){var c=Array.e(b);a.b[c.c]=c;fb(a,[K(a.l,0)])};e=Array.prototype;e.za=1;e.A=function(a){if(0<=a&&a<this.length)return this.$(a);h(i(a))};e.F=function(a,b){(a<0||this.length<=a)&&h(i(a));this[a]=b};
e.Ia=function(){var a;if(this.Q){a=[K(L(this,"f"),0)];a=q("h",gb,a,void 0);var b=new Q;b.g=a;b.C=this;b.D=0;b.B=this.length}else a=[K(L(this,"f"),0)],a=q("g",hb,a,void 0),b=new R,b.g=a,b.C=this,b.D=0;return a=b};function la(a){s.d&&o();return Array.prototype.Ia.call(a)}e.$=function(a){return this[a]};e.X=function(){return this.length};e.J=function(a){for(var b=la(this);b.ba(0,s);){var c=na(b);a(1,s,c)}};e.xa=function(a,b,c){(b.d||a!=1)&&o();return Array.prototype.J.call(this,c)};
e.W=function(){return this.length===0};e.j=function(a){this.Q?h(v(ib("Cannot add to a non-extendable list"))):this.push(a)};e.T=function(){this.Q?h(v(ib("Cannot clear a non-extendable list"))):this.Q?h(v(ib("Cannot change the length of a non-extendable list"))):this.length=0};Array.q=function(){};Array.z=function(){};Array.Xa=function(a){var b=[];b.g=a;Array.z.call(b);Array.q.call(b);return b};function R(a,b){this.C=a;this.D=b}function hb(a,b){jb(a,b);a.w=[]}function jb(a,b){var c=q("g",hb,b,void 0);a.b[c.c]=c;c=[K(a.l,0)];c=q("Ya",null,c,void 0);a.b[c.c]=c}R.prototype.U=function(){return this.C.length>this.D};R.prototype.ba=function(a,b){(b.d||a!=0)&&o();return R.prototype.U.call(this)};R.prototype.Ja=function(){if(!this.U()){var a=new S;a.g=q("Ha",kb,null,void 0);h(v(a))}return this.C[f(this.C,this.D++)]};function na(a){s.d&&o();return R.prototype.Ja.call(a)};function Q(a,b,c){this.C=a;this.D=b;this.B=c}l(Q,R);function gb(a,b){var c=q("h",gb,b,void 0);a.b[c.c]=c;jb(a,[K(a.l,0)]);a.w=[]}Q.prototype.U=function(){return this.B>this.D};Q.prototype.ba=function(a,b){(b.d||a!=0)&&o();return Q.prototype.U.call(this)};Boolean.e=function(a,b){return q("k",Boolean.r,null,b)};Boolean.r=function(a){Boolean.n(a)};Boolean.n=function(a){var b=Boolean.e();a.b[b.c]=b;b=q("pa",null,null,void 0);a.b[b.c]=b};Boolean.prototype.G=function(a){return typeof a=="boolean"&&this==a};Boolean.prototype.h=function(){return this.toString()};Boolean.prototype.i=function(a,b){(b.d||a!=0)&&o();return Boolean.prototype.h.call(this)};Boolean.q=function(){};Boolean.z=function(){};
Boolean.Qa=function(){var a=new Boolean;a.g=Boolean.e();Boolean.z.call(a);Boolean.q.call(a);return a};function oa(a){return u(a)};function Fa(){}function lb(a){var b=q("q",lb,null,void 0);a.b[b.c]=b;mb(a)}e=Fa.prototype;e.la=1;function T(a,b,c){var d=new Fa;d.g=q("q",lb,null,void 0);d.v=a;d.s=b;d.u=c;return d}e.G=function(a){return!!(a!=null&&a.la)&&m(this.v,a.v)&&m(this.s,a.s)&&m(this.u,a.u)};e.K=function(){return this.v<<16^this.s<<8^this.u};e.V=function(a,b){(b.d||a!=0)&&o();return Fa.prototype.K.call(this)};e.m=function(){return"q:"+u(this.u)+(":"+u(this.s))+(":"+u(this.v))};var Ca;function Da(a,b){this.P=a;this.H=b}function Ea(a){var b=q("s",Ea,null,void 0);a.b[b.c]=b;b=q("Va",null,null,void 0);a.b[b.c]=b}Da.prototype.Aa=1;Da.prototype.fa=function(){return T(A,w.id,this.P)};function Ka(a){nb()(1,s,a)}function Ha(a){var b=new ob;b.g=q("x",pb,null,void 0);return qb(b,a)}function Ga(a){var b=new rb;b.g=q("y",sb,null,void 0);b.R=0;return qb(b,a)}function wa(a){var b=new tb(void 0);b.g=q("z",null,null,void 0);s.d&&o();return tb.prototype.Ca.call(b,a)};function ub(a){this.p=a}function vb(a){var b=q("w",null,null,void 0);a.b[b.c]=b}function wb(a){return a==null||typeof a=="string"||!!(a!=null&&a.ma)||typeof a=="boolean"}e=ub.prototype;e.Ma=function(a){if(wb(a))return this.Y(a);this.p=N(null,void 0);var b=void 0;try{b=U(this,a)}finally{for(var a=this.p.length,c=0;c<a;c++)this.p[f(this.p,c)].__MessageTraverser__attached_info__=void 0;this.p=void 0}return b};function qb(a,b){s.d&&o();return ub.prototype.Ma.call(a,b)}
function xb(a,b,c){a.p.j(b);b.__MessageTraverser__attached_info__=c}function U(a,b){if(wb(b))return a.Y(b);if(b!=null&&b.za)return a.ga(b);if(b!=null&&b.ka)return a.ha(b);if(b!=null&&b.la)return a.M(b);if(b!=null&&b.Aa)return a.ia(b);if(b!=null&&b.Pa)return a.ja(b);var c="Message serialization: Illegal value "+O(b)+" passed",d=new V;d.g=q("P",yb,null,void 0);d.aa=c;h(d)}e.Y=function(){};e.ga=function(){};e.ha=function(){};e.M=function(){};e.ia=function(){};e.ja=function(){};
function zb(a){return a.__MessageTraverser__attached_info__};function ob(a){this.p=a}l(ob,ub);function pb(a){var b=q("x",pb,null,void 0);a.b[b.c]=b;vb(a)}e=ob.prototype;e.Y=function(a){return a};e.ga=function(a){var b=zb(a);if(b!=null)return b;var c=a.length,b=N(null,c);xb(this,a,b);for(var d=0;d<c;d++)b[f(b,d)]=U(this,a[f(a,d)]);return b};function Ab(a,b,c,d,g){(c.d||b!=2)&&o();a.copy.F(U(this,d),U(this,g))}function Bb(){return ab([I.e(),I.e()])}
e.ha=function(a){var b;b={};b.copy=zb(a);if(b.copy!=null)return b.copy;b.copy=Cb();xb(this,a,b.copy);a.xa(1,s,ca(Ab,Bb,this,b));return b.copy};e.M=function(a){return T(a.v,a.s,a.u)};e.ia=function(a){return T(A,w.id,a.P)};e.ja=function(a){return T(A,w.id,a.P)};function rb(a,b){this.p=a;this.R=b}l(rb,ub);function sb(a){var b=q("y",sb,null,void 0);a.b[b.c]=b;vb(a)}e=rb.prototype;e.Y=function(a){return a};e.ga=function(a){var b=zb(a);if(b!=null)return W(J(["ref",b],Array.e()));b=this.R++;xb(this,a,b);a=Db(this,a);return W(J(["list",b,a],Array.e()))};e.ha=function(a){var b=zb(a);if(b!=null)return W(J(["ref",b],Array.e()));b=this.R++;xb(this,a,b);var c=Db(this,ma(a));s.d&&o();a=X.prototype.Fa.call(a);a=Db(this,a);return W(J(["map",b,c,a],Array.e()))};
e.M=function(a){return W(J(["sendport",a.v,a.s,a.u],Array.e()))};e.ia=function(a){return this.M(a.fa())};e.ja=function(a){return this.M(a.fa())};function Db(a,b){for(var c=b.length,d=Array(c),g=0;g<c;g++){var j=U(a,b[f(b,g)]);d[g]=j}return d}function W(a){if(a instanceof Array)a.g=null;else{for(var b=a.length,c=Array(b),d=0;d<b;d++)c[d]=a.A(d);a=c}return a};function tb(a){this.O=a}function Eb(a){return a==null||typeof a=="string"||!!(a!=null&&a.ma)||typeof a=="boolean"}tb.prototype.Ca=function(a){if(Eb(a))return a;this.O=Cb();return Fb(this,a)};
function Fb(a,b){if(Eb(b))return b;switch(b[0]){case "ref":return a.O.A(b[1]);case "list":var c=b[1],d;d=b[2];a.O.F(c,d);for(var c=d.length,g=0;g<c;g++)d[f(d,g)]=Fb(a,d[f(d,g)]);return d;case "map":d=Cb();a.O.F(b[1],d);for(var c=b[2],g=b[3],j=c.length,r=0;r<j;r++){var t=Fb(a,c[r]),n=Fb(a,g[r]);d.F(t,n)}return d;case "sendport":return T(b[1],b[2],b[3]);default:h("Unexpected serialized object")}};Number.e=function(a,b){return q("B",Number.r,null,b)};Number.r=function(a){Number.n(a)};Number.n=function(a){var b=Number.e();a.b[b.c]=b;Gb(a);Hb(a)};e=Number.prototype;e.ma=1;e.na=function(a){return this+a};e.G=function(a){return typeof a=="number"&&this==a};e.h=function(){return this.toString()};e.i=function(a,b){(b.d||a!=0)&&o();return Number.prototype.h.call(this)};e.K=function(){return this&268435455};e.V=function(a,b){(b.d||a!=0)&&o();return Number.prototype.K.call(this)};Number.q=function(){};
Number.z=function(){};Number.Ya=function(){var a=new Number;a.g=Number.e();Number.z.call(a);Number.q.call(a);return a};String.e=function(a,b){return q("G",String.r,null,b)};String.r=function(a){String.n(a)};String.n=function(a){var b=String.e();a.b[b.c]=b;Ib(a)};String.$a=function(a){return String.ua(a)};e=String.prototype;e.A=function(a){if(0<=a&&a<this.length)return this.$(a);h(i(a))};e.X=function(){return this.length};e.G=function(a){return typeof a=="string"&&this==a};e.W=function(){return this.length===0};e.na=function(a){return this.concat(a.i(0,s))};
e.K=function(){for(var a=0,b=0;b<this.length;b++){var c=this.charCodeAt(b);a+=c;a+=a<<10;a^=a>>6}a+=a<<3;a^=a>>11;a+=a<<15;a&=536870911;return a};e.V=function(a,b){(b.d||a!=0)&&o();return String.prototype.K.call(this)};e.h=function(){return String(this)};e.i=function(a,b){(b.d||a!=0)&&o();return String.prototype.h.call(this)};String.ua=function(a){return cb(a)};String.Ba=function(a,b,c){(b.d||a!=1)&&o();return String.ua(c)};String.ab=function(){var a=String.Ba;a.e=String.bb;return a};
String.prototype.$=function(a){return this[a]};function O(a){return a==null?"null":a.i(0,s)};function Jb(){}function Kb(a){var b=q("K",Kb,null,void 0);a.b[b.c]=b;b=q("ub",null,null,void 0);a.b[b.c]=b}function ka(){var a=new Jb;a.g=q("K",Kb,null,void 0);a.T();a.j("");return a}e=Jb.prototype;e.X=function(){return this.B};e.W=function(){return this.B===0};e.j=function(a){a=a.i(0,s);if(a==null||a.W())return this;this.o.j(a);this.B+=a.X();return this};e.T=function(){this.o=N([q("tb",Lb,null,void 0)],void 0);this.B=0;return this};
e.h=function(){if(this.o.length===0)return"";if(this.o.length===1)return this.o[f(this.o,0)];var a;a=this.o;for(var b="",c=0;c<a.length;c++){c>0&&(b=b.concat(""));var d=a[f(a,c)],b=b.concat(d)}a=b;this.o.T();this.o.j(a);return a};e.i=function(a,b){(b.d||a!=0)&&o();return Jb.prototype.h.call(this)};function eb(){}eb.prototype.m=function(){return"M"};function V(){}function yb(a){var b=q("P",yb,null,void 0);a.b[b.c]=b;Y(a)}V.prototype.h=function(){return this.aa==null?"Exception":"Exception: "+O(this.aa)+""};V.prototype.i=function(a,b){(b.d||a!=0)&&o();return V.prototype.h.call(this)};V.prototype.m=function(){return"P:"+u(this.aa)};function X(){}function Mb(a,b){var c=q("U",Mb,b,void 0);a.b[c.c]=c;Nb(a,[K(a.l,0),K(a.l,1)]);a.w=[]}e=X.prototype;e.ka=1;function Cb(){var a=q("U",Mb,void 0,void 0),b=new X;b.g=a;b.t=0;b.S=0;a=ea(24);b.sa=a;b.f=N(null,8);b.k=N([K(L(b,"U"),1)],8);return b}function Ob(){var a=w.Z;if(a===aa)throw"circular initialization";if(a!==k)return a;w.Z=aa;a=new Pb;a.g=q("X",null,null,void 0);a=v(a);return w.Z=a}
function Qb(a,b){var c;c=b.V(0,s)&a.f.length-1;for(var d=1,g=-1;;){var j=a.f[f(a.f,c)];if(j==null)return g<0?c:g;else if(m(j,b))return c;else g<0&&Ob()===j&&(g=c);j=d++;c=c+j&a.f.length-1}}function Rb(a,b){var c=a.f.length;a.sa=ea(b*3);var d=a.f,g=a.k;a.f=N(null,b);a.k=N([K(L(a,"U"),1)],b);for(var j=0;j<c;j++){var r=d[f(d,j)];if(!(r==null||r===Ob())){var t=g[f(g,j)],n=Qb(a,r);a.f[f(a.f,n)]=r;a.k[f(a.k,n)]=t}}a.S=0}
e.T=function(){this.S=this.t=0;for(var a=this.f.length,b=0;b<a;b++)this.f[f(this.f,b)]=void 0,this.k[f(this.k,b)]=void 0};e.F=function(a,b){var c=this.t+1;c>=this.sa?Rb(this,this.f.length*2):this.S>this.f.length-c-this.S&&Rb(this,this.f.length);c=Qb(this,a);(this.f[f(this.f,c)]==null||this.f[f(this.f,c)]===Ob())&&this.t++;this.f[f(this.f,c)]=a;this.k[f(this.k,c)]=b};
e.A=function(a){a:{var b;b=a.V(0,s)&this.f.length-1;for(var c=1;;){var d=this.f[f(this.f,b)];if(d==null){a=-1;break a}if(m(d,a)){a=b;break a}d=c++;b=b+d&this.f.length-1}a=void 0}return a<0?void 0:this.k[f(this.k,a)]};e.W=function(){return this.t===0};e.X=function(){return this.t};e.J=function(a){for(var b=this.f.length,c=0;c<b;c++)this.f[f(this.f,c)]!=null&&this.f[f(this.f,c)]!==Ob()&&a(2,s,this.f[f(this.f,c)],this.k[f(this.k,c)])};
e.xa=function(a,b,c){(b.d||a!=1)&&o();return X.prototype.J.call(this,c)};function Sb(a,b,c,d){(c.d||b!=2)&&o();a.list[f(a.list,a.ca++)]=d}function Tb(){return ab([K(L(this,"U"),0),K(L(this,"U"),1)])}e.Ea=function(){var a;a={};a.list=N([K(L(this,"U"),0)],this.t);a.ca=0;this.J(ca(Sb,Tb,void 0,a));return a.list};function ma(a){s.d&&o();return X.prototype.Ea.call(a)}function Ub(a,b,c,d,g){(c.d||b!=2)&&o();a.list[f(a.list,a.ca++)]=g}function Vb(){return ab([K(L(this,"U"),0),K(L(this,"U"),1)])}
e.Fa=function(){var a;a={};a.list=N([K(L(this,"U"),1)],this.t);a.ca=0;this.J(ca(Ub,Vb,void 0,a));return a.list};function Pb(){}Pb.prototype.m=function(){return"X"};function Wb(a,b,c){(b.d||a!=1)&&o();a=c==null?"null":c.i(0,s);Wa(a)}function Xb(){return ab([I.e()])}function nb(){Wb.e=Xb;return Wb};function Yb(a,b){Zb(a,b);a.w=[]}function Zb(a,b){var c=q("qa",Yb,b,void 0);a.b[c.c]=c;c=[K(a.l,0)];c=q("Xa",null,c,void 0);a.b[c.c]=c};function $b(a){Hb(a)}function Hb(a){var b=q("ta",$b,null,void 0);a.b[b.c]=b;ac(a)};function Y(a){var b=q("va",null,null,void 0);a.b[b.c]=b};function Z(){}function bc(a){var b=q("wa",bc,null,void 0);a.b[b.c]=b;Y(a)}function i(a){var b=new Z;b.g=q("wa",bc,null,void 0);b.ra=a;return b}Z.prototype.h=function(){return"IndexOutOfRangeException: "+O(this.ra)+""};Z.prototype.i=function(a,b){(b.d||a!=0)&&o();return Z.prototype.h.call(this)};Z.prototype.m=function(){return"wa:"+u(this.ra)};function p(){}function fa(a){var b=q("ya",fa,null,void 0);a.b[b.c]=b;Y(a)}p.prototype.h=function(){for(var a=ka(),b=0;b<this.N.length;b++)b>0&&a.j(", "),a.j(this.N[f(this.N,b)]);a.j("]");return da("NoSuchMethodException - receiver: '"+O(this.va)+"' ","function name: '"+O(this.qa)+"' arguments: ["+O(a)+"]")};p.prototype.i=function(a,b){(b.d||a!=0)&&o();return p.prototype.h.call(this)};p.prototype.m=function(){return"ya:"+u(this.va)+(":"+u(this.qa))+(":"+u(this.N))};function P(){}function db(a){var b=q("Ba",db,null,void 0);a.b[b.c]=b;Y(a)}P.prototype.h=function(){return"Illegal argument(s): "+O(this.pa)+""};P.prototype.i=function(a,b){(b.d||a!=0)&&o();return P.prototype.h.call(this)};P.prototype.m=function(){return"Ba:"+u(this.pa)};function S(){}function kb(a){var b=q("Ha",kb,null,void 0);a.b[b.c]=b;Y(a)}S.prototype.h=function(){return"NoMoreElementsException"};S.prototype.i=function(a,b){(b.d||a!=0)&&o();return S.prototype.h.call(this)};S.prototype.m=function(){return"Ha"};function $(){}function cc(a){var b=q("Ja",cc,null,void 0);a.b[b.c]=b;Y(a)}function ib(a){var b=new $;b.g=q("Ja",cc,null,void 0);b.ta=a;return b}$.prototype.h=function(){return"UnsupportedOperationException: "+O(this.ta)+""};$.prototype.i=function(a,b){(b.d||a!=0)&&o();return $.prototype.h.call(this)};$.prototype.m=function(){return"Ja:"+u(this.ta)};function dc(a){var b=q("Sa",null,null,void 0);a.b[b.c]=b};function ec(a){Gb(a)}function Gb(a){var b=q("Ta",ec,null,void 0);a.b[b.c]=b;ac(a)};function fc(a){mb(a)}function mb(a){var b=q("Ua",fc,null,void 0);a.b[b.c]=b;dc(a)};function gc(a,b){fb(a,b);a.w=[]}function fb(a,b){var c=q("Za",gc,b,void 0);a.b[c.c]=c;Zb(a,[K(a.l,0)])};function hc(a,b){Nb(a,b);a.w=[]}function Nb(a,b){var c=q("ab",hc,b,void 0);a.b[c.c]=c;c=[K(a.l,0),K(a.l,1)];c=q("$a",null,c,void 0);a.b[c.c]=c};function ic(a){ac(a)}function ac(a){var b=q("db",ic,null,void 0);a.b[b.c]=b;b=q("ra",null,null,void 0);a.b[b.c]=b;dc(a)};function Lb(a){Ib(a)}function Ib(a){var b=q("tb",Lb,null,void 0);a.b[b.c]=b;b=q("ra",null,null,void 0);a.b[b.c]=b;dc(a);b=q("eb",null,null,void 0);a.b[b.c]=b};x.push(function(){this.H=k;w.oa=1});x.push(function(){this.R=0});x.push(function(){w.Z=k});x.push(function(){w.fb=k;w.eb=k;w.gb=k});x.push(function(){w.Ta=k;w.Sa=k;w.Ra=k;w.Wa=k;w.Va=k;w.Ua=k});(function(a,b){if(!z){var c=new Ba;pa=c;va(c,function(){a(b)});Ia();w=c}})(function(){nb()(1,s,"Hello JavaScripter!")},this.arguments?this.arguments.slice?[].concat(this.arguments.slice()):this.arguments:[]);
pending…

Compare results of other browsers

Revisions

You can edit these tests or add even more tests to this page by appending /edit to the URL. Here’s a list of current revisions for this page:

0 comments

Add a comment