archives

« Bugzilla Issues Index

#2524 — Module toString


What do we expect the following to return?

Object.prototype.toString.call(moduleInstanceObject)

Module instance objects have a null prototype so @@toStringTag will not work. Do we want to special case these to return '[object Module]'?


fixed in rev28 editor's draft

module namespace object now have a @@toStringTag


fixed in rev28