Home | History | Annotate | Download | only in src

Lines Matching refs:Function

53 function FormatString(format, message) {
78 function IsNativeErrorObject(obj) {
93 function ToStringCheckErrorObject(obj) {
102 function ToDetailString(obj) {
117 function MakeGenericError(constructor, type, args) {
129 * Setup the Script function and constructor.
133 %SetCode(Script, function(x) {
140 function FormatMessage(message) {
167 called_non_callable: ["%0", " is not a function"],
169 property_not_function: ["Property '", "%0", "' of object ", "%1", " is not a function"],
179 apply_non_function: ["Function.prototype.apply was called on ", "%0", ", which is a ", "%1", " and not a function"],
180 apply_wrong_args: ["Function.prototype.apply: Arguments list has wrong type"],
182 instanceof_function_expected: ["Expecting a function in instanceof check, but got ", "%0"],
183 instanceof_nonobject_proto: ["Function has non-object prototype '", "%0", "' in instanceof check"],
186 getter_must_be_callable: ["Getter must be a function: ", "%0"],
187 setter_must_be_callable: ["Setter must be a function: ", "%0"],
212 invalid_preparser_data: ["Invalid preparser data for function ", "%0"],
215 too_many_arguments: ["Too many arguments in function call (only 32766 allowed)"],
216 too_many_parameters: ["Too many parameters in function definition (only 32766 allowed)"],
219 strict_param_dupe: ["Strict mode function may not have duplicate parameter names"],
221 strict_function_name: ["Function name may not be eval or arguments in strict mode"],
233 strict_function: ["In strict mode code, functions can only be declared at top level or immediately within another function." ],
238 strict_function_caller: ["Cannot access property 'caller' of a strict mode function"],
239 strict_function_arguments: ["Cannot access property 'arguments' of a strict mode function"],
240 strict_caller: ["Illegal access to a strict mode caller function."],
250 function GetLineNumber(message) {
262 function GetSourceLine(message) {
272 function MakeTypeError(type, args) {
277 function MakeRangeError(type, args) {
282 function MakeSyntaxError(type, args) {
287 function MakeReferenceError(type, args) {
292 function MakeEvalError(type, args) {
297 function MakeError(type, args) {
307 Script.prototype.lineFromPosition = function(position) {
346 Script.prototype.locationFromPosition = function (position,
372 * fixed source position. This function is used to find a source position from
374 * used to find a source position in a function based on a line and column in
375 * the source for the function alone. The offset passed will then be the
376 * start position of the source for the function within the full script source.
384 Script.prototype.locationFromLine = function (opt_line, opt_column, opt_offset_position) {
426 Script.prototype.sourceSlice = function (opt_from_line, opt_to_line) {
453 Script.prototype.sourceLine = function (opt_line) {
479 Script.prototype.lineCount = function() {
495 Script.prototype.nameOrSourceURL = function() {
544 function SourceLocation(script, position, line, column, start, end) {
564 SourceLocation.prototype.restrict = function (opt_limit, opt_before) {
611 SourceLocation.prototype.sourceText = function () {
634 function SourceSlice(script, from_line, to_line, from_position, to_position) {
648 SourceSlice.prototype.sourceText = function () {
658 function GetPositionInLine(message) {
668 function GetStackTraceLine(recv, fun, pos, isGlobal) {
677 function DefineOneShotAccessor(obj, name, fun) {
683 obj.__defineGetter__(name, function () {
691 obj.__defineSetter__(name, function (v) {
697 function CallSite(receiver, fun, pos) {
703 CallSite.prototype.getThis = function () {
707 CallSite.prototype.getTypeName = function () {
717 CallSite.prototype.isToplevel = function () {
723 CallSite.prototype.isEval = function () {
728 CallSite.prototype.getEvalOrigin = function () {
733 CallSite.prototype.getScriptNameOrSourceURL = function () {
738 CallSite.prototype.getFunction = function () {
742 CallSite.prototype.getFunctionName = function () {
743 // See if the function knows its own name
757 CallSite.prototype.getMethodName = function () {
759 // this function.
766 // the same name as the function.
785 CallSite.prototype.getFileName = function () {
790 CallSite.prototype.getLineNumber = function () {
801 CallSite.prototype.getColumnNumber = function () {
812 CallSite.prototype.isNative = function () {
817 CallSite.prototype.getPosition = function () {
821 CallSite.prototype.isConstructor = function () {
828 function FormatEvalOrigin(script) {
864 function FormatSourcePosition(frame) {
922 function FormatStackTrace(error, frames) {
951 function FormatRawStackTrace(error, raw_stack) {
968 function DefineError(f) {
969 // Store the error function in both the global object
970 // and the runtime object. The function is fetched
978 // Configure the error function.
984 function ErrorPrototype() {}
999 %SetCode(f, function(m) {
1010 DefineOneShotAccessor(this, 'message', function (obj) {
1023 function captureStackTrace(obj, cons_opt) {
1031 DefineOneShotAccessor(obj, 'stack', function (obj) {
1038 DefineError(function Error() { });
1039 DefineError(function TypeError() { });
1040 DefineError(function RangeError() { });
1041 DefineError(function SyntaxError() { });
1042 DefineError(function ReferenceError() { });
1043 DefineError(function EvalError() { });
1044 DefineError(function URIError() { });
1056 function errorToStringDetectCycle() {
1073 function errorToString() {
1074 // This helper function is needed because access to properties on
1076 function isCyclicErrorMarker(o) { return o === cyclic_error_marker; }