Search Results
-
#7281 Up↑ /17 Down↓ [Report] 2014-06-07 01:45 GMT
<fitzgen> should or shouldn't this throw an error? https://gist.github.com/fitzgen/1842c22ffd0d3db33418
<jorendorff> fitzgen: It should throw an error.
<jorendorff> fitzgen: `d instanceof Date` only checks the prototype chain. It does not actually check whether d is an instance of the Date class.
<jorendorff> Here, d is just a plain Object with an unusual prototype.
<jorendorff> fitzgen: Subclassing is coming soon. This sort of thing will be possible without assigning to __proto__. But we're not quite there yet.
<Waldo> fitzgen: Date.prototype.valueOf.call(d) not throwing is enough to verify an actual Date object, for now
<shu> is JS going to get bless?
<Waldo> don't we have plenty of pearls of wisdom of our own to add already?
<jorendorff> you are both fired
<Waldo> \o/ -
#5863 Up↑ /15 Down↓ [Report] 2011-07-12 01:57 GMT
<sicking> anything that's not 6510 assembly is too mainstream for me
<sicking> 3 registers should be enough for anyone
<jcranmer> 3 registers? my computer gets by with just 2 accumulators
<KWierso> my computer just returns true whenever I push the power button -
#5350 Up↑ /17 Down↓ [Report] 2010-07-29 01:19 GMT
<bsmedberg> * New special variable: .RECIPEPREFIX allows you to reset the recipe
<bsmedberg> introduction character from the default (TAB) to something else. The
<bsmedberg> first character of this variable value is the new recipe introduction
<bsmedberg> character. If the variable is set to the empty string, TAB is used again.
<bsmedberg> It can be set and reset at will; recipes will use the value active when
<bsmedberg> they were first parsed. To detect this feature check the value of $(.RECIPEPREFIX).
<bsmedberg> yum, variables that change parsing behavior
<shaver> wow.
<shaver> did they lose a bet with perl6?
Kindly hosted by jX and in no way affiliated with the Mozilla Foundation.