Update bytecode.ts

This commit is contained in:
Corey Johnson 2025-10-16 14:13:39 -07:00
parent 1bc46045ba
commit fa7589293a

View File

@ -507,7 +507,7 @@ function toBytecodeFromString(str: string): Bytecode /* throws */ {
} catch (e) {
throw new Error(`Invalid regex literal: ${operand}`)
}
}else {
} else {
// Assume it's a variable name if it doesn't match any other pattern
// This allows emoji, Unicode, and other creative identifiers
// (already checked that it doesn't start with . # or match other patterns)