@@ -22,12 +22,6 @@ contributors: Robin Ricard, Rick Button, Ashley Claymore, Nicolò Ribaudo, Peter
2222 <li>JSONMemberListEvaluation</li>
2323 </ul>
2424 </emu-note>
25- <emu-note type="editor">
26- <p>This proposal builds on top of <a href="https://github.com/tc39/proposal-temporal">Temporal</a>, which introduces the following AO:</p>
27- <ul>
28- <li>GetOption</li>
29- </ul>
30- </emu-note>
3125
3226 <emu-clause id="sec-json-object" number="5">
3327 <h1>The JSON Object</h1>
@@ -119,10 +113,12 @@ contributors: Robin Ricard, Rick Button, Ashley Claymore, Nicolò Ribaudo, Peter
119113 1. Let _freeze_ be *false*.
120114 1. Let _preferNullPrototype_ be *false*.
121115 1. If _options_ is an Object and IsCallable(_options_) is *false*, then
122- 1. Let _freezeDefaultValue_ be *false*.
123- 1. Set _freeze_ to ? <emu-meta suppress-effects="user-code">GetOption(_options_, *"freeze"*, ~BOOLEAN~, ~EMPTY~, _freezeDefaultValue_)</emu-meta>.
124- 1. Let _preferNullPrototypeDefaultValue_ be _freeze_.
125- 1. Set _preferNullPrototype_ to ? <emu-meta suppress-effects="user-code">GetOption(_options_, *"preferNullPrototype"*, ~BOOLEAN~, ~EMPTY~, _preferNullPrototypeDefaultValue_)</emu-meta>.
116+ 1. Set _freeze_ to ? Get(_options_, *"freeze"*).
117+ 1. If _freeze_ is *undefined*, set _freeze_ to *false*.
118+ 1. Else, set _freeze_ to ToBoolean(_freeze_).
119+ 1. Set _preferNullPrototype_ to ? Get(_options_, *"preferNullPrototype"*).
120+ 1. If _preferNullPrototype_ is *undefined*, set _preferNullPrototype_ to _freeze_.
121+ 1. Else, set _preferNullPrototype_ to ToBoolean(_preferNullPrototype_).
126122 1. Return the JSON Parse Options Record { [[Freeze]]: _freeze_, [[PreferNullPrototype]]: _preferNullPrototype_ }.
127123 </emu-alg>
128124 </emu-clause>
0 commit comments