[Webkit-unassigned] [Bug 166056] New: Object.prototype.toString(m) !== '[object Module]'

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Dec 20 05:36:09 PST 2016


https://bugs.webkit.org/show_bug.cgi?id=166056

            Bug ID: 166056
           Summary: Object.prototype.toString(m) !== '[object Module]'
    Classification: Unclassified
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: guybedford at gmail.com

In the module system, the `Symbol.toStringTag` on the module namespace object should be resulting in the following holding true:

```
import * as m from './m.js';
Object.prototype.toString(m) === '[object Module]';
```

But the above is currently returning `[object Object]` instead.

This is a useful feature for detecting if a given object is a module namespace object, which will likely be necessary for interop use cases in future.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20161220/91e83671/attachment.html>


More information about the webkit-unassigned mailing list