Lines Matching refs:Function
39 function FormatString(format, message) {
68 function IsNativeErrorObject(obj) {
83 function ToStringCheckErrorObject(obj) {
92 function ToDetailString(obj) {
95 if (typeof constructor == "function") {
106 function MakeGenericError(constructor, type, args) {
118 * Set up the Script function and constructor.
123 %SetCode(Script, function(x) {
130 function FormatMessage(message) {
159 "called_non_callable", ["%0", " is not a function"],
161 "property_not_function", ["Property '", "%0", "' of object ", "%1", " is not a function"],
171 "apply_non_function", ["Function.prototype.apply was called on ", "%0", ", which is a ", "%1", " and not a function"],
172 "apply_wrong_args", ["Function.prototype.apply: Arguments list has wrong type"],
174 "instanceof_function_expected", ["Expecting a function in instanceof check, but got ", "%0"],
175 "instanceof_nonobject_proto", ["Function has non-object prototype '", "%0", "' in instanceof check"],
178 "getter_must_be_callable", ["Getter must be a function: ", "%0"],
179 "setter_must_be_callable", ["Setter must be a function: ", "%0"],
188 "trap_function_expected", ["Proxy.", "%0", " called with non-function for '", "%1", "' trap"],
218 "invalid_preparser_data", ["Invalid preparser data for function ", "%0"],
221 "too_many_arguments", ["Too many arguments in function call (only 32766 allowed)"],
222 "too_many_parameters", ["Too many parameters in function definition (only 32766 allowed)"],
225 "strict_param_dupe", ["Strict mode function may not have duplicate parameter names"],
227 "strict_function_name", ["Function name may not be eval or arguments in strict mode"],
239 "strict_function", ["In strict mode code, functions can only be declared at top level or immediately within another function." ],
243 "strict_caller", ["Illegal access to a strict mode caller function."],
281 function GetLineNumber(message) {
293 function GetSourceLine(message) {
303 function MakeTypeError(type, args) {
308 function MakeRangeError(type, args) {
313 function MakeSyntaxError(type, args) {
318 function MakeReferenceError(type, args) {
323 function MakeEvalError(type, args) {
328 function MakeError(type, args) {
338 function ScriptLineFromPosition(position) {
377 function ScriptLocationFromPosition(position,
405 * fixed source position. This function is used to find a source position from
407 * used to find a source position in a function based on a line and column in
408 * the source for the function alone. The offset passed will then be the
409 * start position of the source for the function within the full script source.
418 function ScriptLocationFromLine(opt_line, opt_column, opt_offset_position) {
461 function ScriptSourceSlice(opt_from_line, opt_to_line) {
492 function ScriptSourceLine(opt_line) {
518 function ScriptLineCount() {
534 function ScriptNameOrSourceURL() {
608 function SourceLocation(script, position, line, column, start, end) {
627 function SourceLocationRestrict(opt_limit, opt_before) {
674 function SourceLocationSourceText() {
709 function SourceSlice(script, from_line, to_line, from_position, to_position) {
722 function SourceSliceSourceText() {
737 function GetPositionInLine(message) {
747 function GetStackTraceLine(recv, fun, pos, isGlobal) {
756 function DefineOneShotAccessor(obj, name, fun) {
762 var getter = function() {
770 var setter = function(v) {
777 function CallSite(receiver, fun, pos) {
783 function CallSiteGetThis() {
787 function CallSiteGetTypeName() {
799 function CallSiteIsToplevel() {
806 function CallSiteIsEval() {
811 function CallSiteGetEvalOrigin() {
816 function CallSiteGetScriptNameOrSourceURL() {
821 function CallSiteGetFunction() {
825 function CallSiteGetFunctionName() {
826 // See if the function knows its own name
841 function CallSiteGetMethodName() {
843 // this function.
854 // the same name as the function.
876 function CallSiteGetFileName() {
881 function CallSiteGetLineNumber() {
893 function CallSiteGetColumnNumber() {
905 function CallSiteIsNative() {
910 function CallSiteGetPosition() {
914 function CallSiteIsConstructor() {
941 function FormatEvalOrigin(script) {
979 function FormatSourcePosition(frame) {
1038 function FormatStackTrace(error, frames) {
1067 function FormatRawStackTrace(error, raw_stack) {
1085 function captureStackTrace(obj, cons_opt) {
1094 DefineOneShotAccessor(obj, 'stack', function (obj) {
1100 function SetUpError() {
1103 var DefineError = function(f) {
1104 // Store the error function in both the global object
1105 // and the runtime object. The function is fetched
1113 // Configure the error function.
1119 var ErrorPrototype = function() {};
1135 %SetCode(f, function(m) {
1146 DefineOneShotAccessor(this, 'message', function (obj) {
1163 DefineError(function Error() { });
1164 DefineError(function TypeError() { });
1165 DefineError(function RangeError() { });
1166 DefineError(function SyntaxError() { });
1167 DefineError(function ReferenceError() { });
1168 DefineError(function EvalError() { });
1169 DefineError(function URIError() { });
1183 function ErrorToStringDetectCycle(error) {
1203 function ErrorToString() {