()
| 27 | } |
| 28 | |
| 29 | func (e *errorObject) addStackProp() Value { |
| 30 | if !e.stackPropAdded { |
| 31 | res := e._putProp(propNameStack, e.formatStack(), true, false, true) |
| 32 | if len(e.propNames) > 1 { |
| 33 | // reorder property names to ensure 'stack' is the first one |
| 34 | copy(e.propNames[1:], e.propNames) |
| 35 | e.propNames[0] = propNameStack |
| 36 | } |
| 37 | e.stackPropAdded = true |
| 38 | return res |
| 39 | } |
| 40 | return nil |
| 41 | } |
| 42 | |
| 43 | func (e *errorObject) getStr(p unistring.String, receiver Value) Value { |
| 44 | return e.getStrWithOwnProp(e.getOwnPropStr(p), p, receiver) |
no test coverage detected