You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Stefan Ram wrote:
> I prepared my course with Firefox 38. FWIW, in this browser
> I observed this behaviour in the console:
>
> |>this.Date.prototype.setTime( 0 )
> |<0
> |>this.Date.prototype.getTime()
> |<0
> |>this.Date.prototype.setTime( 1 )
> |<1
> |>this.Date.prototype.getTime()
> |<1
>
> I used this in my course as a simple explanation of setters
> and getters. But no. A more recent firefox now gives:
>
> |>this.Date.prototype.setTime( 0 )
> |XTypeError: setTime method called on incompatible Object
>
> Well, this was a rather strange way to call rather obscure
> functions, so I guess no one will mind anyway.
There was no point in using “this” here in the first place.
As for the TypeError exception, “Firefox 38 was released on May 12th, 2015”
[1], so its JavaScript 38 was not likely to have implemented algorithms
introduced with in ECMAScript 2015 of *June* 2015. Cf. [2]:
| · Date.prototype is now an ordinary object, not a Date instance anymore
| (bug 861219).