Script tag race condition

I was experimenting with a script tag and noticed that I can get the binary to stuck above 1k% CPU if div/etc is declared inside. Potentially, this could be encountered via poor codegen so an exception/error might be useful.