From: Garrett Smith on 12 Jul 2010 02:53 Function.prototype, as defined by ECMA-262r3, | The Function prototype object is itself a Function object (its | [[Class]] is "Function") that, when invoked, accepts any arguments | and returns undefined. This function is useful as a reusable noop method, however it's broken in JScript in IE9pr3. In IE9 pr3, calling Function.prototype returns a function that, when called, returns undefined: javascript: alert(typeof Function.prototype()()); "undefined". Instead, that should throw a TypeError as Function.prototype is specified to be a function that returns undefined, not "returns a function that returns undefined.". Garrett
|
Pages: 1 Prev: Catch Block Scope, Broken Different in IE9pr3 Next: Serial Port and Javascript |