Closed yungcheng closed 7 years ago
similar question for 8.6 FromStackFramePosition ( position )
The algorithm for Type
is such that arrays are Object: https://tc39.github.io/ecma262/#sec-ecmascript-data-types-and-values. "Array" is not a type.
Ah thanks for the reminder, forgot that Array isn't a type. Cool I'll close this issue then.
8.5
FromStackFrameSpan ( span )
returns an array and that's used in 8.4FromStackFrame(frame)
in step 8Perform ! CreateDataProperty(obj, "span", ! FromStackFrameSpan(frame.[[Span]])).
Based on that,
frame.[[Span]]
would be an array instead of an object. That contradicts to 8.2IsStackFrameSpan ( span )
step 1.If ! Type(span) is not Object, return false.