Skip to content

Commit

Permalink
Dont assert in public API
Browse files Browse the repository at this point in the history
  • Loading branch information
Zibi Braniecki committed May 6, 2016
1 parent 6de7c33 commit 76adfa8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions spec/datetimeformat.html
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,8 @@ <h1>get Intl.DateTimeFormat.prototype.format</h1>

<emu-alg>
1. Let _dtf_ be *this* value.
1. Assert: Type(_dtf_) is Object and _dtf_ has an [[initializedDateTimeFormat]] internal slot whose value is *true*.
1. If Type(_dtf_) is not Object, throw a *TypeError* exception.
1. If _dtf_ does not have an [[initializedDateTimeFormat]] internal slot, throw a *TypeError* exception.
1. If the [[boundFormat]] internal slot of _dtf_ is *undefined*, then
1. Let _F_ be a new built-in function object as defined in DateTime Format Functions (<emu-xref href="#sec-datetime-format-functions"></emu-xref>).
1. Let _bf_ be BoundFunctionCreate(_F_, _dft_, « »).
Expand All @@ -531,7 +532,8 @@ <h1>Intl.DateTimeFormat.prototype.formatToParts ([ date ])</h1>

<emu-alg>
1. Let _dtf_ be *this* value.
1. Assert: Type(_dtf_) is Object and _dtf_ has an [[initializedDateTimeFormat]] internal slot whose value is *true*.
1. If Type(_dtf_) is not Object, throw a *TypeError* exception.
1. If _dtf_ does not have an [[initializedDateTimeFormat]] internal slot, throw a *TypeError* exception.
1. If _date_ is not provided or is *undefined*, then
1. Let _x_ be *%Date_now%*().
1. Else,
Expand Down

0 comments on commit 76adfa8

Please sign in to comment.