archives

« Bugzilla Issues Index

#1700 — 15.9.4.45: redundant type check?


15.9.4.45's algorithm begins:
1. Let O be this Date object.
2. If Type(O) is not Object, then throw a TypeError exception.

But how can the condition in step 2 be true? The phrase "this Date object" is defined (in 15.9.4) to be an object, and all other references to "this Date object" assume it to be so (i.e., they set or get its internal properties without first checking that it's an object). So either this type-check is redundant, or there are a bunch of other places that need to add a type-check.


fixed in rev17 editor's draft


fixed in rev17, August 23, 2013 draft