« Bugzilla Issues Index
#3250 — Reflective API to verify a module object
- bug_id:
3250
- creation_ts:
2014-09-30 06:25:00 -0700
- short_desc:
Reflective API to verify a module object
- delta_ts:
2015-03-16 14:27:57 -0700
- product:
Draft for 7th Edition
- component:
New feature suggestons
- version:
unspecified
- rep_platform:
All
- op_sys:
All
- bug_status:
CONFIRMED
- priority:
Normal
- bug_severity:
normal
- everconfirmed:
true
- reporter:
Guy Bedford
- assigned_to:
Allen Wirfs-Brock
- cc:
["dherman", "jorendorff", "samth"]
- commentid:
10251
- comment_count:
0
- who:
Guy Bedford
- bug_when:
2014-09-30 06:25:44 -0700
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