Skip to content

Commit 1a5d4c6

Browse files
fix(fixtures): regenerate security-limits main.ts (5603 bytes) + config 1024
main.ts padded to ~5.6 KB so it exceeds the 1024-byte floor and triggers the resource-limit diagnostic. Config sets maxSourceBytes=1024 to match the parseLimits floor. Roadmap item 25.
1 parent af64da2 commit 1a5d4c6

2 files changed

Lines changed: 112 additions & 0 deletions

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<title>rawscript — security fixture: source size limit enforced</title>
6+
<script>
7+
window.rawscriptConfig = {
8+
limits: { maxSourceBytes: 1024 },
9+
}
10+
</script>
11+
<script src="/dist/rawscript.js"></script>
12+
</head>
13+
<body>
14+
<div id="out"></div>
15+
<script type="module" src="./main.ts"></script>
16+
</body>
17+
</html>
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
// This fixture sets window.rawscriptConfig.limits.maxSourceBytes = 1024 (the
2+
// parseLimits floor — smaller values clamp up to it). This file is ~2 KB,
3+
// so the Service Worker must refuse to compile it and surface the structured
4+
// resource-limit diagnostic instead.
5+
// padding to exceed the 1024-byte floor of maxSourceBytes
6+
// padding to exceed the 1024-byte floor of maxSourceBytes
7+
// padding to exceed the 1024-byte floor of maxSourceBytes
8+
// padding to exceed the 1024-byte floor of maxSourceBytes
9+
// padding to exceed the 1024-byte floor of maxSourceBytes
10+
// padding to exceed the 1024-byte floor of maxSourceBytes
11+
// padding to exceed the 1024-byte floor of maxSourceBytes
12+
// padding to exceed the 1024-byte floor of maxSourceBytes
13+
// padding to exceed the 1024-byte floor of maxSourceBytes
14+
// padding to exceed the 1024-byte floor of maxSourceBytes
15+
// padding to exceed the 1024-byte floor of maxSourceBytes
16+
// padding to exceed the 1024-byte floor of maxSourceBytes
17+
// padding to exceed the 1024-byte floor of maxSourceBytes
18+
// padding to exceed the 1024-byte floor of maxSourceBytes
19+
// padding to exceed the 1024-byte floor of maxSourceBytes
20+
// padding to exceed the 1024-byte floor of maxSourceBytes
21+
// padding to exceed the 1024-byte floor of maxSourceBytes
22+
// padding to exceed the 1024-byte floor of maxSourceBytes
23+
// padding to exceed the 1024-byte floor of maxSourceBytes
24+
// padding to exceed the 1024-byte floor of maxSourceBytes
25+
// padding to exceed the 1024-byte floor of maxSourceBytes
26+
// padding to exceed the 1024-byte floor of maxSourceBytes
27+
// padding to exceed the 1024-byte floor of maxSourceBytes
28+
// padding to exceed the 1024-byte floor of maxSourceBytes
29+
// padding to exceed the 1024-byte floor of maxSourceBytes
30+
// padding to exceed the 1024-byte floor of maxSourceBytes
31+
// padding to exceed the 1024-byte floor of maxSourceBytes
32+
// padding to exceed the 1024-byte floor of maxSourceBytes
33+
// padding to exceed the 1024-byte floor of maxSourceBytes
34+
// padding to exceed the 1024-byte floor of maxSourceBytes
35+
// padding to exceed the 1024-byte floor of maxSourceBytes
36+
// padding to exceed the 1024-byte floor of maxSourceBytes
37+
// padding to exceed the 1024-byte floor of maxSourceBytes
38+
// padding to exceed the 1024-byte floor of maxSourceBytes
39+
// padding to exceed the 1024-byte floor of maxSourceBytes
40+
// padding to exceed the 1024-byte floor of maxSourceBytes
41+
// padding to exceed the 1024-byte floor of maxSourceBytes
42+
// padding to exceed the 1024-byte floor of maxSourceBytes
43+
// padding to exceed the 1024-byte floor of maxSourceBytes
44+
// padding to exceed the 1024-byte floor of maxSourceBytes
45+
// padding to exceed the 1024-byte floor of maxSourceBytes
46+
// padding to exceed the 1024-byte floor of maxSourceBytes
47+
// padding to exceed the 1024-byte floor of maxSourceBytes
48+
// padding to exceed the 1024-byte floor of maxSourceBytes
49+
// padding to exceed the 1024-byte floor of maxSourceBytes
50+
// padding to exceed the 1024-byte floor of maxSourceBytes
51+
// padding to exceed the 1024-byte floor of maxSourceBytes
52+
// padding to exceed the 1024-byte floor of maxSourceBytes
53+
// padding to exceed the 1024-byte floor of maxSourceBytes
54+
// padding to exceed the 1024-byte floor of maxSourceBytes
55+
// padding to exceed the 1024-byte floor of maxSourceBytes
56+
// padding to exceed the 1024-byte floor of maxSourceBytes
57+
// padding to exceed the 1024-byte floor of maxSourceBytes
58+
// padding to exceed the 1024-byte floor of maxSourceBytes
59+
// padding to exceed the 1024-byte floor of maxSourceBytes
60+
// padding to exceed the 1024-byte floor of maxSourceBytes
61+
// padding to exceed the 1024-byte floor of maxSourceBytes
62+
// padding to exceed the 1024-byte floor of maxSourceBytes
63+
// padding to exceed the 1024-byte floor of maxSourceBytes
64+
// padding to exceed the 1024-byte floor of maxSourceBytes
65+
// padding to exceed the 1024-byte floor of maxSourceBytes
66+
// padding to exceed the 1024-byte floor of maxSourceBytes
67+
// padding to exceed the 1024-byte floor of maxSourceBytes
68+
// padding to exceed the 1024-byte floor of maxSourceBytes
69+
// padding to exceed the 1024-byte floor of maxSourceBytes
70+
// padding to exceed the 1024-byte floor of maxSourceBytes
71+
// padding to exceed the 1024-byte floor of maxSourceBytes
72+
// padding to exceed the 1024-byte floor of maxSourceBytes
73+
// padding to exceed the 1024-byte floor of maxSourceBytes
74+
// padding to exceed the 1024-byte floor of maxSourceBytes
75+
// padding to exceed the 1024-byte floor of maxSourceBytes
76+
// padding to exceed the 1024-byte floor of maxSourceBytes
77+
// padding to exceed the 1024-byte floor of maxSourceBytes
78+
// padding to exceed the 1024-byte floor of maxSourceBytes
79+
// padding to exceed the 1024-byte floor of maxSourceBytes
80+
// padding to exceed the 1024-byte floor of maxSourceBytes
81+
// padding to exceed the 1024-byte floor of maxSourceBytes
82+
// padding to exceed the 1024-byte floor of maxSourceBytes
83+
// padding to exceed the 1024-byte floor of maxSourceBytes
84+
// padding to exceed the 1024-byte floor of maxSourceBytes
85+
// padding to exceed the 1024-byte floor of maxSourceBytes
86+
// padding to exceed the 1024-byte floor of maxSourceBytes
87+
// padding to exceed the 1024-byte floor of maxSourceBytes
88+
// padding to exceed the 1024-byte floor of maxSourceBytes
89+
// padding to exceed the 1024-byte floor of maxSourceBytes
90+
// padding to exceed the 1024-byte floor of maxSourceBytes
91+
// padding to exceed the 1024-byte floor of maxSourceBytes
92+
// padding to exceed the 1024-byte floor of maxSourceBytes
93+
// padding to exceed the 1024-byte floor of maxSourceBytes
94+
// padding to exceed the 1024-byte floor of maxSourceBytes
95+
export const VALUE = 42

0 commit comments

Comments
 (0)