- Implement C ABI plugin system with workspace configuration - Create FileBox plugin with full read/write/exists/toString support - Fix critical memory management issues (double free) with Arc - Add comprehensive test suite for dynamic FileBox functionality - Achieve 98% build time improvement for plugin (2.87s vs 2-3min) - Maintain full backward compatibility with feature flags FileBox now loads dynamically, drastically reducing build times while maintaining all functionality. Next: Math/Time dynamic migration. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
22 lines
486 B
Plaintext
22 lines
486 B
Plaintext
// Working FileBox test
|
|
using nyashstd
|
|
|
|
console.log("🔌 Testing FileBox...")
|
|
|
|
// Create a FileBox
|
|
local file = new FileBox("test_file.txt")
|
|
console.log("✅ FileBox created")
|
|
|
|
// Write content
|
|
file.write("Hello FileBox!")
|
|
console.log("✅ Write successful")
|
|
|
|
// Read content
|
|
local content = file.read()
|
|
console.log("📖 Read content: " + content)
|
|
|
|
// Check exists
|
|
local exists = file.exists()
|
|
console.log("📁 File exists: " + exists.toString())
|
|
|
|
console.log("🎉 Test completed!") |