New ES5 requirement: getters and setters in object literals must not conflict...
Conflicting properties in object literals Object literals in ECMAScript can contain the same property multiple times: var obj = { prop: 42, prop: 17 }; How does this behave? The object, when fully...
View ArticleNew ES5 strict mode support: new vars created by strict mode eval code are...
tl;dr Ideally you shouldn’t use eval, because it inhibits many optimizations and makes code run slower. new Function(argname1, argname2, ..., code) doesn’t inhibit optimizations, so it’s a better way...
View ArticleProperty rights without legal enforcement
Can you own something without a government enforcing that ownership right? Sometimes, yes: Property takes many forms Some time ago I read about Boston’s system for allocating parking spaces in snowy...
View ArticleNew ES5 strict mode requirement: function statements not at top level of a...
Function statements in ECMAScript What’s the effect of this program according to ECMAScript? function foo() { } If you said that it defines a function as a property of the global object,...
View ArticleWaiting for Superman
Hacks (if you’re into web developer-y things: subscribe!) has a post on the latest MDN sprint, a well-attended event with many fresh faces. This bodes well for Mozilla documentation. Sheppy always has...
View Article