You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.
I'm writing an introduction to js using Firefox devtools and the basic examples force me to explain more than I should.
I'm trying to introduce the JSON subset first, so no undefined and all object keys quoted, the problem is that an empty object literal evaluates to undefined, I assume it thinks it's an empty scope (Chrome evaluates to an empty object).
Also, I can't enter object literals with quoted keys (works on Chrome).
Screenshot:
Let me know if I should report this somewhere else.
The text was updated successfully, but these errors were encountered:
{} and {"key": 42} are blocks of code and not objects (not sure if that's what you meant by scope). You can wrap them in parenthesis to get the expected behavior.
A few years ago Chrome changed the behavior of their console to start automatically turning such blocks into objects. We should probably do the same, but I don't know if we already have a bug on file for this. @nchevobbe should know.
I'm writing an introduction to js using Firefox devtools and the basic examples force me to explain more than I should.
I'm trying to introduce the JSON subset first, so no undefined and all object keys quoted, the problem is that an empty object literal evaluates to undefined, I assume it thinks it's an empty scope (Chrome evaluates to an empty object).
Also, I can't enter object literals with quoted keys (works on Chrome).
Screenshot:
Let me know if I should report this somewhere else.
The text was updated successfully, but these errors were encountered: