Files
dev/test_normal.js
T
James Peter dd87d2d41f Fix build warnings
- Fixed unused variable warnings (ring_h, cwd, command)
- Fixed unused field warning (_server)
- Handled unused AppEvent variants properly
- Added #[allow(dead_code)] for utility modules that may be used later
- All warnings resolved while maintaining functionality
2025-08-14 09:04:56 +10:00

11 lines
283 B
JavaScript

// Test script without IIFE that should also return a value
function findElement() {
const el = document.querySelector('body');
if (!el) {
return { ok: false, reason: 'no-body' };
}
return { ok: true, tag: el.tagName };
}
const result = findElement();
result