Home | History | Annotate | Download | only in mjsunit

Lines Matching full:assertthrows

30   assertThrows("'use strict';\n" + code, exception);
31 assertThrows('"use strict";\n' + code, exception);
38 assertThrows("\
59 assertThrows(function() {
71 assertThrows("function foo (x) 'use strict'; {}", SyntaxError);
81 assertThrows('\
136 assertThrows('\
163 assertThrows('\
354 assertThrows("function " + word + " () { 'use strict'; }", SyntaxError);
355 assertThrows("function foo (" + word + ", " + word + ") { 'use strict'; }",
357 assertThrows("function foo (a, " + word + ") { 'use strict'; }", SyntaxError);
358 assertThrows("function foo (" + word + ", a) { 'use strict'; }", SyntaxError);
359 assertThrows("function foo (a, " + word + ", b) { 'use strict'; }",
361 assertThrows("var foo = function (" + word + ") { 'use strict'; }",
366 assertThrows("var x = { set foo(" + word + ") { 'use strict'; } };",
475 assertThrows(function() { delete_property(object); }, TypeError);
477 assertThrows(function() { delete_element(object, "1"); }, TypeError);
478 assertThrows(function() { delete_element(object, 1); }, TypeError);
480 assertThrows(function() { delete_element(object, "7"); }, TypeError);
481 assertThrows(function() { delete_element(object, 7); }, TypeError);
483 assertThrows(function() { delete_element(object, "3.14"); }, TypeError);
484 assertThrows(function() { delete_element(object, 3.14); }, TypeError);
749 assertThrows(
764 assertThrows(
782 assertThrows(function() { strict(frozen); }, TypeError);
783 assertThrows(function() { strict(sealed); }, TypeError);
793 assertThrows(function() { o.property = "new value"; }, TypeError);
794 assertThrows(function() { o.property += 10; }, TypeError);
795 assertThrows(function() { o.property -= 10; }, TypeError);
796 assertThrows(function() { o.property *= 10; }, TypeError);
797 assertThrows(function() { o.property /= 10; }, TypeError);
798 assertThrows(function() { o.property++; }, TypeError);
799 assertThrows(function() { o.property--; }, TypeError);
800 assertThrows(function() { ++o.property; }, TypeError);
801 assertThrows(function() { --o.property; }, TypeError);
804 assertThrows(function() { o[name] = "new value"; }, TypeError);
805 assertThrows(function() { o[name] += 10; }, TypeError);
806 assertThrows(function() { o[name] -= 10; }, TypeError);
807 assertThrows(function() { o[name] *= 10; }, TypeError);
808 assertThrows(function() { o[name] /= 10; }, TypeError);
809 assertThrows(function() { o[name]++; }, TypeError);
810 assertThrows(function() { o[name]--; }, TypeError);
811 assertThrows(function() { ++o[name]; }, TypeError);
812 assertThrows(function() { --o[name]; }, TypeError);
874 assertThrows(function() { o[zero_smi] = "new value"; }, TypeError);
875 assertThrows(function() { o[zero_number] = "new value"; }, TypeError);
876 assertThrows(function() { o[zero_symbol] = "new value"; }, TypeError);
877 assertThrows(function() { o[zero_string] = "new value"; }, TypeError);
890 assertThrows(function() { frozen[zero_number] = "value"; }, TypeError);
891 assertThrows(function() { sealed[zero_number] = "value"; }, TypeError);
892 assertThrows(function() { frozen[zero_symbol] = "value"; }, TypeError);
893 assertThrows(function() { sealed[zero_symbol] = "value"; }, TypeError);
894 assertThrows(function() { frozen[zero_string] = "value"; }, TypeError);
895 assertThrows(function() { sealed[zero_string] = "value"; }, TypeError);
911 assertThrows(function() { o[seven_smi] = "value"; }, TypeError);
912 assertThrows(function() { o[seven_smi] += 10; }, TypeError);
913 assertThrows(function() { o[seven_smi] -= 10; }, TypeError);
914 assertThrows
915 assertThrows(function() { o[seven_smi] /= 10; }, TypeError);
916 assertThrows(function() { o[seven_smi]++; }, TypeError);
917 assertThrows(function() { o[seven_smi]--; }, TypeError);
918 assertThrows(function() { ++o[seven_smi]; }, TypeError);
919 assertThrows(function() { --o[seven_smi]; }, TypeError);
921 assertThrows(function() { o[seven_number] = "value"; }, TypeError);
922 assertThrows(function() { o[seven_number] += 10; }, TypeError);
923 assertThrows(function() { o[seven_number] -= 10; }, TypeError);
924 assertThrows(function() { o[seven_number] *= 10; }, TypeError);
925 assertThrows(function() { o[seven_number] /= 10; }, TypeError);
926 assertThrows(function() { o[seven_number]++; }, TypeError);
927 assertThrows(function() { o[seven_number]--; }, TypeError);
928 assertThrows(function() { ++o[seven_number]; }, TypeError);
929 assertThrows(function() { --o[seven_number]; }, TypeError);
931 assertThrows(function() { o[seven_symbol] = "value"; }, TypeError);
932 assertThrows(function() { o[seven_symbol] += 10; }, TypeError);
933 assertThrows(function() { o[seven_symbol] -= 10; }, TypeError);
934 assertThrows(function() { o[seven_symbol] *= 10; }, TypeError);
935 assertThrows(function() { o[seven_symbol] /= 10; }, TypeError);
936 assertThrows(function() { o[seven_symbol]++; }, TypeError);
937 assertThrows(function() { o[seven_symbol]--; }, TypeError);
938 assertThrows(function() { ++o[seven_symbol]; }, TypeError);
939 assertThrows(function() { --o[seven_symbol]; }, TypeError);
941 assertThrows(function() { o[seven_string] = "value"; }, TypeError);
942 assertThrows(function() { o[seven_string] += 10; }, TypeError);
943 assertThrows(function() { o[seven_string] -= 10; }, TypeError);
944 assertThrows(function() { o[seven_string] *= 10; }, TypeError);
945 assertThrows(function() { o[seven_string] /= 10; }, TypeError);
946 assertThrows(function() { o[seven_string]++; }, TypeError);
947 assertThrows(function() { o[seven_string]--; }, TypeError);
948 assertThrows(function() { ++o[seven_string]; }, TypeError);
949 assertThrows(function() { --o[seven_string]; }, TypeError);
969 assertThrows(function() { o[seven_smi] = "value" }, TypeError);
970 assertThrows(function() { o[seven_number] = "value" }, TypeError);
971 assertThrows(function() { o[seven_symbol] = "value" }, TypeError);
972 assertThrows(function() { o[seven_string] = "value" }, TypeError);
986 assertThrows(function() { str_val.length = 1; }, TypeError);
987 assertThrows(function() { str_obj.length = 1; }, TypeError);
988 assertThrows(function() { str_cat.length = 1; }, TypeError);
1018 assertThrows(function() { 'use strict'; pill.property = "value"; },
1020 assertThrows(pill, TypeError);
1042 assertThrows(function() { 'use strict'; pill.property = "value"; },
1044 assertThrows(pill, TypeError);
1060 assertThrows(function() { strict.caller; }, TypeError);
1061 assertThrows(function() { strict.arguments; }, TypeError);
1062 assertThrows(function() { strict.caller = 42; }, TypeError);
1063 assertThrows(function() { strict.arguments = 42; }, TypeError);
1066 assertThrows(function() { another.caller; }, TypeError);
1067 assertThrows(function() { another.arguments; }, TypeError);
1068 assertThrows(function() { another.caller = 42; }, TypeError);
1069 assertThrows(function() { another.arguments = 42; }, TypeError);
1072 assertThrows(function() { third.caller; }, TypeError);
1073 assertThrows(function() { third.arguments; }, TypeError);
1074 assertThrows(function() { third.caller = 42; }, TypeError);
1075 assertThrows(function() { third.arguments = 42; }, TypeError);
1090 assertThrows(function() { TheClass.caller; }, TypeError);
1091 assertThrows(function() { TheClass.arguments; }, TypeError);
1224 assertThrows(function() { return eval_local; }, ReferenceError);