Skip to content

Commit 709fc46

Browse files
authored
Merge pull request #7 from dminor/remove-iscallable-check
Remove IsCallable check for constructor
2 parents e355758 + 5751f3a commit 709fc46

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

spec.emu

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,9 @@ markEffects: true
2525
<h1>Properties of the Error Constructor</h1>
2626

2727
<emu-clause id="sec-error.capturestacktrace">
28-
<h1>Error.captureStackTrace ( _error_ [ , _constructor_ ])</h1>
28+
<h1>Error.captureStackTrace ( _error_ [ , _constructor_ ] )</h1>
2929
<emu-alg>
3030
1. If _error_ is not an Object, throw a *TypeError* exception.
31-
1. If _constructor_ is not *undefined*, then
32-
1. If IsCallable(_constructor_) is *false*, throw a *TypeError* exception.
33-
1. TODO: No implementations currently check that _constructor_ is callable, this may not be web compatible.
3431
1. If IsCallable(_constructor_) is *true*, then
3532
1. Let _string_ be an implementation-defined string that represents the current stack trace, with all stack
3633
frames above the topmost call to _constructor_, including that call, omitted from the stack trace.

0 commit comments

Comments
 (0)