This repository has been archived by the owner on May 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Object.prototype.toString.call does not behave as expected #11722
Comments
Test again with PhantomJS 1.9.2, since that is the current release. |
I can confirm Object.prototype.toString.call on both null and undefined returns [object DOMWindow] on Phantom 1.9.2 on my system. |
Actually I tried 1.9.2 on linux and got the following: phantomjs> Object.prototype.toString.call(null) |
@courtnek: Don't trust the REPL. |
Confirmed. Still present in 1.9.2 |
Any updates on this? I have this issue on 1.9.8 |
On Windows 7, with PhantomJS 2.0.0 I haven't this issue
|
REPL is known to be broken in 1.9.X version. |
Hm, I’m using it with karma, which installs 1.9.X by default. Will try to switch to 2.0, thanks. |
Fixed in 2.0. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Filing an issue to track the following behavior (tested with Phantom 1.6.0):
http://stackoverflow.com/questions/14218670/why-are-null-and-undefined-of-the-type-domwindow
phantomjs> Object.prototype.toString.call(undefined);
"[object DOMWindow]"
The text was updated successfully, but these errors were encountered: