Skip to content

Commit 9bbfb59

Browse files
committed
Use private symbol to store stack trace
1 parent aab3b05 commit 9bbfb59

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

spec.emu

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,13 @@ markEffects: true
6666
1. Perform ? DefinePropertyOrThrow(_O_, *"stack"*, PropertyDescriptor { [[Value]]: _string_, [[Writable]]: true, [[Enumerable]]: true, [[Configurable]]: true }).
6767
1. Else,
6868
1. Assert: _strategy_ is ~accessor~.
69-
1. Let _getterClosure_ be a new Abstract Closure with no parameters that captures _string_ and performs the following steps when called:
70-
1. Return NormalCompletion(_string_).
71-
1. Let _getter_ be CreateBuiltinFunction(_getterClosure_, 0, "", « »).
72-
1. Let _setterClosure_ be a new Abstract Closure with parameters (_value_) that captures _O_ and performs the following steps when called:
73-
1. Perform ? DefinePropertyOrThrow(_O_, *"stack"*, PropertyDescriptor { [[Value]]: _value_, [[Writable]]: true, [[Enumerable]]: true, [[Configurable]]: true }).
69+
1. Let _captureStackSymbol_ be an implementation-defined Symbol value.
70+
1. Perform ? DefinePropertyOrThrow(_O_, _captureStackSymbol_, PropertyDescriptor { [[Value]]: _string_, [[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: true }).
71+
1. Let _getter_ be a built-in function that takes no arguments and performs the following steps when called:
72+
1. Return ? Get(*this* value, _captureStackSymbol_).
73+
1. Let _setter_ be a built-in function that takes an argument _value_ and performs the following steps when called:
74+
1. Perform ? DefinePropertyOrThrow(*this* value, *"stack"*, PropertyDescriptor { [[Value]]: _value_, [[Writable]]: true, [[Enumerable]]: true, [[Configurable]]: true }).
7475
1. Return NormalCompletion(*undefined*).
75-
1. Let _setter_ be CreateBuiltinFunction(_setterClosure_, 1, "", « »).
7676
1. Perform ? DefinePropertyOrThrow(_O_, *"stack"*, PropertyDescriptor { [[Get]]: _getter_, [[Set]]: _setter_, [[Enumerable]]: false, [[Configurable]]: true }).
7777
1. Return *undefined*.
7878
</emu-alg>

0 commit comments

Comments
 (0)