TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

What Javascript is not safe in a open-ended script?

3 pointsby quaz3lalmost 13 years ago

2 comments

robert00700almost 13 years ago
Surely censoring the functionality is completely impossible, due to the dynamic nature of JS?<p>alert("blah")<p>can just as easily be made to be<p>window["alert"]("blah"), where the string 'alert' could be made by a very convoluted manner. Solving this would be akin to solving the halting problem, no?
christocracyalmost 13 years ago
window[['t', 'r', 'e', 'l', 'a'].reverse().join('')]("blah");