This repository has been archived by the owner on May 30, 2023. It is now read-only.
Calling JSON.stringify on arguments fails
#11845
Milestone
arguments fails
#11845
Running latest PhantomJS,
1.9.2, on both OS X 10.9 and Ubuntu 12.04. Installedphantomjsboth viabrewandnpm, no difference in behavior.Here's the code I'm trying to use:
(Sidenote: Declaring this function at the PhantomJS console errored, told me that it was a cyclic structure. Same problem persisted when not at the console, though.)
And my test cases:
I narrowed this down by throwing a
console.log(JSON.stringify(arguments))just belowvar serialization, above. It logs{}. I also experienced the same behavior when trying toconsole.log(arguments), thoughconsole.log(arguments[0]);worked fine.The text was updated successfully, but these errors were encountered: