typed-objects-es7 icon indicating copy to clipboard operation
typed-objects-es7 copied to clipboard

What should `typeof typeObject` yield?

Open nikomatsakis opened this issue 11 years ago • 0 comments

At some point, I think it was the intention that typeof uint8 yielded "function". It's not clear to me what typeof new StructType(...) was intended to yield. I think I'd personally prefer to just yield object all the time, but I don't have a good sense for what JS users "expect" here.

ping @dherman

nikomatsakis avatar Mar 27 '14 14:03 nikomatsakis