// Arrow functions can have primitive |this| values.
Number.prototype.foo = function() {
"use strict";
return () => this;
}
for (var i=0; i<5; i++) {
var n = i.foo()();
assertEq(typeof n, "number");
assertEq(n, i);
}
| Messung V0.5 |
|---|
| | | |
[ zur Elbe Produktseite wechseln0.15Quellennavigators
Analyse erneut starten
]