archives

« Bugzilla Issues Index

#3250 — Reflective API to verify a module object


It would be useful in various scenarios to verify than an object is a full ES6 module object, as opposed to a plain object.

Something like -

var p = System.newModule({ module: 'object' });
Reflect.isModule(p); // returns true, false otherwise