JSEnv is a very useful development bookmarklet that does not work in Safari. I don't expect the feature "install as user script" to work. However, JSEnv cannot run a simple script in Safari. Try in FireFox to see how it should work.
Hi Garrett, JSEnv seems to work fine in the nightlies. If you are seeing a particular problem please reopen the bug. Thanks for the report though.
Much better in the nightly. However, running the example in Safari, the failure case has a different Result: The error does not make it to the console, as it does in FireFox. I didn't try to find out why the failure test failed. In firefox: ================================================ Running... Squares of numbers 0 through 4: 0 1 4 9 16 Error on line 11: this.statement has no properties ================================================ In safari: ================================================ Running... Squares of numbers 0 through 4: 0 1 4 9 16 ================================================
Confirmed with a local debug build of WebKit r21332 with Safari 2.0.4 (419.3) on Mac OS X 10.4.9 (8P135). JavaScript console reports (when running the "failure" test): TypeError: Undefined value Line: 11
This problem is caused by window.onerror not working in WebKit, closing as a duplicate. Thank you for reporting this! Please file new bugs if you find any other problems with this bookmarklet. *** This bug has been marked as a duplicate of 8519 ***