13.2.3 [[ThrowTypeError]]

2010-05-23

The [[ThrowTypeError]] is a unique function object and is declared once as follows:

Code: (Meta Ecma)
function(){
var F = new Object;
// "Set internal methods of F as 8.12"
F.[[Class]] = "Function";
F.[[Prototype]] = Function.prototype; // see 15.3.3.1
F.[[Call]] = CreateFunctionCall();
F.[[Scope]] = global;
F.[[FormalParameters]] = new List; // empty list
F.[[Code]] = "throw TypeError";
F.[[DefineOwnProperty]]("length", PD{[[Value]]:0, [[Writable]]:false, [[Enumerable]]:false, [[Configurable]]:false}, false);
F.[[Extensible]] = false;
[[ThrowTypeError]] = F;
}