Home
last modified time | relevance | path

Searched refs:TypeError (Results 1 – 25 of 66) sorted by relevance

123

/external/webkit/V8Binding/v8/test/mjsunit/
Dglobal-const-var-conflicts.js34 try { eval("var a"); } catch (e) { caught++; assertTrue(e instanceof TypeError); }
36 try { eval("var a = 1"); } catch (e) { caught++; assertTrue(e instanceof TypeError); }
40 try { eval("var b"); } catch (e) { caught++; assertTrue(e instanceof TypeError); }
42 try { eval("var b = 1"); } catch (e) { caught++; assertTrue(e instanceof TypeError); }
46 try { eval("const c"); } catch (e) { caught++; assertTrue(e instanceof TypeError); }
48 try { eval("const c = 1"); } catch (e) { caught++; assertTrue(e instanceof TypeError); }
52 try { eval("const d"); } catch (e) { caught++; assertTrue(e instanceof TypeError); }
54 try { eval("const d = 1"); } catch (e) { caught++; assertTrue(e instanceof TypeError); }
Djson.js34 assertThrows(function () { n2.toJSON(); }, TypeError);
37 assertThrows(function () { n3.toJSON(); }, TypeError, 'result_not_primitive');
76 assertThrows(function () { n2.toJSON(); }, TypeError);
79 assertThrows(function () { n3.toJSON(); }, TypeError, "result_not_primitive");
184 assertThrows(function () { JSON.stringify(circular); }, TypeError);
Darray-reduce.js418 assertTrue(e instanceof TypeError,
428 assertTrue(e instanceof TypeError,
439 assertTrue(e instanceof TypeError,
449 assertTrue(e instanceof TypeError,
460 assertTrue(e instanceof TypeError,
470 assertTrue(e instanceof TypeError,
Dcall-non-function.js42 assertTrue(caught[0] instanceof TypeError);
43 assertTrue(caught[1] instanceof TypeError);
Dthrow-exception-for-null-access.js35 assertTrue(e instanceof TypeError);
Dunusual-constructor.js35 assertInstanceof(e, TypeError);
Dcall-non-function-call.js36 assertTrue(e instanceof TypeError);
Dclass-of-builtins.js39 Error: [ Error, TypeError, RangeError, SyntaxError, ReferenceError, EvalError, URIError ]
/external/webkit/V8Binding/v8/test/mjsunit/regress/
Dregress-734862.js33 assertTrue(catcher(null, 'foo') instanceof TypeError);
34 assertTrue(catcher(void 0, 'foo') instanceof TypeError);
35 assertTrue(catcher(null, 123) instanceof TypeError);
36 assertTrue(catcher(void 0, 123) instanceof TypeError);
Dregress-667061.js33 assertTrue(o instanceof TypeError);
48 assertTrue(o instanceof TypeError);
68 assertTrue(o instanceof TypeError);
87 assertTrue(o instanceof TypeError);
Dregress-1182832.js36 assertTrue(e instanceof TypeError);
Dregress-1213575.js38 assertTrue(e instanceof TypeError);
Dregress-1110164.js44 assertTrue(e instanceof TypeError);
/external/webkit/JavaScriptCore/runtime/
DDatePrototype.cpp415 return throwError(exec, TypeError); in dateProtoFuncToString()
432 return throwError(exec, TypeError); in dateProtoFuncToUTCString()
449 return throwError(exec, TypeError); in dateProtoFuncToISOString()
471 return throwError(exec, TypeError); in dateProtoFuncToDateString()
488 return throwError(exec, TypeError); in dateProtoFuncToTimeString()
505 return throwError(exec, TypeError); in dateProtoFuncToLocaleString()
518 return throwError(exec, TypeError); in dateProtoFuncToLocaleDateString()
531 return throwError(exec, TypeError); in dateProtoFuncToLocaleTimeString()
544 return throwError(exec, TypeError); in dateProtoFuncGetTime()
557 return throwError(exec, TypeError); in dateProtoFuncGetFullYear()
[all …]
DRegExpPrototype.cpp62 return throwError(exec, TypeError); in regExpProtoFuncTest()
69 return throwError(exec, TypeError); in regExpProtoFuncExec()
76 return throwError(exec, TypeError); in regExpProtoFuncCompile()
84 …return throwError(exec, TypeError, "Cannot supply flags when constructing one RegExp from another.… in regExpProtoFuncCompile()
105 return throwError(exec, TypeError); in regExpProtoFuncToString()
DFunctionPrototype.cpp101 return throwError(exec, TypeError); in functionProtoFuncToString()
109 return throwError(exec, TypeError); in functionProtoFuncApply()
116 return throwError(exec, TypeError); in functionProtoFuncApply()
126 return throwError(exec, TypeError); in functionProtoFuncApply()
137 return throwError(exec, TypeError); in functionProtoFuncCall()
DBooleanPrototype.cpp63 return throwError(exec, TypeError); in booleanProtoFuncToString()
78 return throwError(exec, TypeError); in booleanProtoFuncValueOf()
DNumberPrototype.cpp141 return throwError(exec, TypeError); in numberProtoFuncToString()
207 return throwError(exec, TypeError); in numberProtoFuncToLocaleString()
216 return throwError(exec, TypeError); in numberProtoFuncValueOf()
225 return throwError(exec, TypeError); in numberProtoFuncToFixed()
311 return throwError(exec, TypeError); in numberProtoFuncToExponential()
383 return throwError(exec, TypeError); in numberProtoFuncToPrecision()
DExceptionHelpers.cpp139 …JSObject* exception = Error::create(exec, TypeError, errorMessage, line, codeBlock->ownerNode()->s… in createInvalidParamError()
160 …JSObject* exception = Error::create(exec, TypeError, errorMessage, line, codeBlock->ownerNode()->s… in createNotAConstructorError()
174 …JSObject* exception = Error::create(exec, TypeError, errorMessage, line, codeBlock->ownerNode()->s… in createNotAFunctionError()
204 …JSObject* exception = Error::create(exec, TypeError, errorMessage, line, codeBlock->ownerNode()->s… in createNotAnObjectError()
DArrayPrototype.cpp148 return throwError(exec, TypeError); in arrayProtoFuncToString()
194 return throwError(exec, TypeError); in arrayProtoFuncToLocaleString()
593 return throwError(exec, TypeError); in arrayProtoFuncFilter()
651 return throwError(exec, TypeError); in arrayProtoFuncMap()
708 return throwError(exec, TypeError); in arrayProtoFuncEvery()
764 return throwError(exec, TypeError); in arrayProtoFuncForEach()
809 return throwError(exec, TypeError); in arrayProtoFuncSome()
862 return throwError(exec, TypeError); in arrayProtoFuncReduce()
868 return throwError(exec, TypeError); in arrayProtoFuncReduce()
885 return throwError(exec, TypeError); in arrayProtoFuncReduce()
[all …]
/external/webkit/WebCore/bindings/js/
DJSHTMLInputElementCustom.cpp73 return throwError(exec, TypeError); in selectionStart()
82 throwError(exec, TypeError); in setSelectionStart()
91 return throwError(exec, TypeError); in selectionEnd()
100 throwError(exec, TypeError); in setSelectionEnd()
109 return throwError(exec, TypeError); in setSelectionRange()
/external/webkit/JavaScriptCore/tests/mozilla/ecma_3/Statements/
Dregress-121744.js100 if (e instanceof TypeError)
124 if (e instanceof TypeError)
151 if(e instanceof TypeError)
176 if(e instanceof TypeError)
/external/webkit/WebCore/bindings/v8/custom/
DV8SQLTransactionCustom.cpp94 return throwError("sqlArgs should be array or object!", V8Proxy::TypeError); in CALLBACK_FUNC_DECL()
104 return throwError("Statement callback must be of valid type.", V8Proxy::TypeError); in CALLBACK_FUNC_DECL()
113 … return throwError("Statement error callback must be of valid type.", V8Proxy::TypeError); in CALLBACK_FUNC_DECL()
/external/webkit/V8Binding/v8/src/
Dic.cc194 Failure* IC::TypeError(const char* type, in TypeError() function in v8::internal::IC
338 return TypeError("non_object_property_call", object, name); in LoadFunction()
365 return TypeError("undefined_method", object, name); in LoadFunction()
384 return TypeError("undefined_method", object, name); in LoadFunction()
420 result : TypeError("property_not_function", object, name); in LoadFunction()
522 return TypeError("non_object_property_load", object, name); in Load()
737 return TypeError("non_object_property_load", object, name); in Load()
958 return TypeError("non_object_property_store", object, name); in Store()
1079 return TypeError("non_object_property_store", object, name); in Store()
/external/webkit/WebCore/bindings/v8/
DV8Proxy.h157 TypeError, enumerator
458 … return throwError(V8Proxy::TypeError, "DOM object constructor cannot be called as a function."); in constructDOMObject()
481 …Handle<v8::Primitive> throwError(const char* message, V8Proxy::ErrorType type = V8Proxy::TypeError)

123