diff --git a/spec.emu b/spec.emu index 5d05685..407a8f1 100644 --- a/spec.emu +++ b/spec.emu @@ -4,36 +4,43 @@
-title: Proposal Title Goes Here
-stage: -1
-contributors: Your Name(s) Here
+title: Error.captureStackTrace
+stage: 1
+contributors: Daniel Minor
+markEffects: true
 
- -

This is an emu-clause

-

This is an algorithm:

- - 1. Let _proposal_ be *undefined*. - 1. If IsAccepted(_proposal_) is *true*, then - 1. Let _stage_ be *0*. - 1. Else, - 1. Let _stage_ be *-1*. - 1. Return ? ToString(_stage_). - -
+ +

Introduction

+

+
+ + +

Fundamental Objects

+ + +

Error Objects

+ + +

Properties of the Error Constructor

- -

- IsAccepted ( - _proposal_: an ECMAScript language value - ): a Boolean -

-
-
description
-
Tells you if the proposal was accepted
-
- - 1. If _proposal_ is not a String, or is not accepted, return *false*. - 1. Return *true*. - + +

Error.captureStackTrace ( _error_ [ , _constructor_ ])

+ + 1. If _error_ is not an Object, throw a *TypeError* exception. + 1. If _constructor_ is not *undefined*, then + 1. If IsCallable(_constructor_) is *false*, throw a *TypeError* exception. + 1. TODO: No implementations currently check that _constructor_ is callable, this may not be web compatible. + 1. If IsCallable(_constructor_) is *true*, then + 1. Let _string_ be an implementation-defined string that represents the current stack trace, with all stack + frames above the topmost call to _constructor_, including that call, omitted from the stack trace. + 1. NOTE: This can be used to hide implementation details on the stack trace that aren't useful to user. + 1. Else, + 1. Let _string_ be an implementation-defined string that represents the current stack trace. + 1. Perform ? SetterThatIgnoresPrototypeProperties(*this* value, _error_, *"stack"*, _string_). + 1. Return *undefined*. + +
+
+