Skip to content

Commit dacbf52

Browse files
authored
Merge pull request #28 from linusg/options
Editorial: Use new option AOs
2 parents 3e1c230 + c7a506b commit dacbf52

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
},
1515
"license": "MIT",
1616
"devDependencies": {
17-
"@tc39/ecma262-biblio": "2.2.3177",
17+
"@tc39/ecma262-biblio": "2.2.3260",
1818
"ecmarkup": "^25.0.3"
1919
}
2020
}

‎spec.emu‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,8 @@ contributors: Robin Ricard, Rick Button, Ashley Claymore, Nicolò Ribaudo, Peter
113113
1. Let _freeze_ be *false*.
114114
1. Let _preferNullPrototype_ be *false*.
115115
1. If _options_ is an Object and IsCallable(_options_) is *false*, then
116-
1. Set _freeze_ to ? Get(_options_, *"freeze"*).
117-
1. If _freeze_ is *undefined*, set _freeze_ to *false*.
118-
1. If _freeze_ is not a Boolean, throw a *TypeError* exception.
119-
1. Set _preferNullPrototype_ to ? Get(_options_, *"preferNullPrototype"*).
120-
1. If _preferNullPrototype_ is *undefined*, set _preferNullPrototype_ to _freeze_.
121-
1. If _preferNullPrototype_ is not a Boolean, throw a *TypeError* exception.
116+
1. Set _freeze_ to ? GetBooleanOption(_options_, *"freeze"*, ~reject~, *false*).
117+
1. Set _preferNullPrototype_ to ? GetBooleanOption(_options_, *"preferNullPrototype"*, ~reject~, _freeze_).
122118
1. Return the JSON Parse Options Record { [[Freeze]]: _freeze_, [[PreferNullPrototype]]: _preferNullPrototype_ }.
123119
</emu-alg>
124120
</emu-clause>

0 commit comments

Comments
 (0)