Баг длиною в жизнь)

How you upload JS?

AMD / Commonjs

Our way)

How do you cache JS files?

eTag / If-Modified-Since

Cache-Control

Where is a bug?

F**king sessions)

Solutions

Question))))

var A = function () {
  this.name = "Vladimir";
}

A.prototype.alert = function () { alert(this.name) };
var a = new A();
a.alert();
var A = () => {
  this.name = "Vladimir";
}

A.prototype.alert = function () { alert(this.name) };
var a = new A();
a.alert();
var A = () => {
  this.name = "Vladimir";
}
var a = new A();
a.alert();

Naughty JS bug

By Vladimir

Naughty JS bug

  • 126