summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/generators/bug1673080.js
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
commit26a029d407be480d791972afb5975cf62c9360a6 (patch)
treef435a8308119effd964b339f76abb83a57c29483 /js/src/jit-test/tests/generators/bug1673080.js
parentInitial commit. (diff)
downloadfirefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz
firefox-26a029d407be480d791972afb5975cf62c9360a6.zip
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'js/src/jit-test/tests/generators/bug1673080.js')
-rw-r--r--js/src/jit-test/tests/generators/bug1673080.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/generators/bug1673080.js b/js/src/jit-test/tests/generators/bug1673080.js
new file mode 100644
index 0000000000..a2b590c748
--- /dev/null
+++ b/js/src/jit-test/tests/generators/bug1673080.js
@@ -0,0 +1,23 @@
+// |jit-test| --code-coverage
+
+"use strict";
+
+let s = `\
+(function* () {
+yield 0;
+try { v1; } catch (exc) { yield [1, exc]; }
+try { v255; } catch (exc) { yield [2, exc]; }
+let v255, v254, v253, v252, v251, v250, v249, v248, v247, v246, v245, v244, v243, v242, v241, v240, v239, v238, v237, v236, v235, v234, v233, v232, v231, v230, v229, v228, v227, v226, v225, v224, v223, v222, v221, v220, v219, v218, v217, v216, v215, v214, v213, v212, v211, v210, v209, v208, v207, v206, v205, v204, v203, v202, v201, v200, v199, v198, v197, v196, v195, v194, v193, v192;
+let v191, v190, v189, v188, v187, v186, v185, v184, v183, v182, v181, v180, v179, v178, v177, v176, v175, v174, v173, v172, v171, v170, v169, v168, v167, v166, v165, v164, v163, v162, v161, v160, v159, v158, v157, v156, v155, v154, v153, v152, v151, v150, v149, v148, v147, v146, v145, v144, v143, v142, v141, v140, v139, v138, v137, v136, v135, v134, v133, v132, v131, v130, v129, v128;
+let v127, v126, v125, v124, v123, v122, v121, v120, v119, v118, v117, v116, v115, v114, v113, v112, v111, v110, v109, v108, v107, v106, v105, v104, v103, v102, v101, v100, v99, v98, v97, v96, v95, v94, v93, v92, v91, v90, v89, v88, v87, v86, v85, v84, v83, v82, v81, v80, v79, v78, v77, v76, v75, v74, v73, v72, v71, v70, v69, v68, v67, v66, v65, v64;
+let v63, v62, v61, v60, v59, v58, v57, v56, v55, v54, v53, v52, v51, v50, v49, v48, v47, v46, v45, v44, v43, v42, v41, v40, v39, v38, v37, v36, v35, v34, v33, v32, v31, v30, v29, v28, v27, v26, v25, v24, v23, v22, v21, v20, v19, v18, v17, v16, v15, v14, v13, v12, v11, v10, v9, v8, v7, v6, v5, v4, v3, v2, v1, v0;
+
+let u255, u254, u253, u252, u251, u250, u249, u248, u247, u246, u245, u244, u243, u242, u241, u240, u239, u238, u237, u236, u235, u234, u233, u232, u231, u230, u229, u228, u227, u226, u225, u224, u223, u222, u221, u220, u219, u218, u217, u216, u215, u214, u213, u212, u211, u210, u209, u208, u207, u206, u205, u204, u203, u202, u201, u200, u199, u198, u197, u196, u195, u194, u193, u192;
+let u191, u190, u189, u188, u187, u186, u185, u184, u183, u182, u181, u180, u179, u178, u177, u176, u175, u174, u173, u172, u171, u170, u169, u168, u167, u166, u165, u164, u163, u162, u161, u160, u159, u158, u157, u156, u155, u154, u153, u152, u151, u150, u149, u148, u147, u146, u145, u144, u143, u142, u141, u140, u139, u138, u137, u136, u135, u134, u133, u132, u131, u130, u129, u128;
+let u127, u126, u125, u124, u123, u122, u121, u120, u119, u118, u117, u116, u115, u114, u113, u112, u111, u110, u109, u108, u107, u106, u105, u104, u103, u102, u101, u100, u99, u98, u97, u96, u95, u94, u93, u92, u91, u90, u89, u88, u87, u86, u85, u84, u83, u82, u81, u80, u79, u78, u77, u76, u75, u74, u73, u72, u71, u70, u69, u68, u67, u66, u65, u64;
+let u63, u62, u61, u60, u59, u58, u57, u56, u55, u54, u53, u52, u51, u50, u49, u48, u47, u46, u45, u44, u43, u42, u41, u40, u39, u38, u37, u36, u35, u34, u33, u32, u31, u30, u29, u28, u27, u26, u25, u24, u23, u22, u21, u20, u19, u18, u17, u16, u15, u14, u13, u12, u11, u10, u9, u8, u7, u6, u5, u4, u3, u2, u1, u0;
+
+})
+`;
+let gen = eval(s);
+gen().next(); // don't assert