kripken/emscripten — pull request #1339 by josephg (2013-06-30 17:07:21+00:00)
Title: Fixed emscripten_get_now in a shell

Calling `emscripten_get_now()` in a shell was throwing `ReferenceError: window is not defined` because window was accessed without checking.

I didn't test with spidermonkey, but Date.now() is at least available from the d8 shell.