Bug 1915045 Ensure decode tasks are scheduled on BufferingState::Enter() r=media...
[gecko.git] / js / xpconnect / tests / unit / envChain.jsm
blob37fbc1574076544ba4180f7fb56ecdaff3ceca34
1 var qualified = 10;
2 // NOTE: JSM cannot have unqualified name.
3 let lexical = 30;
4 this.prop = 40;
6 const funcs = Cu.getJSTestingFunctions();
7 const envs = [];
8 let env = funcs.getInnerMostEnvironmentObject();
9 while (env) {
10   envs.push({
11     type: funcs.getEnvironmentObjectType(env) || "*SystemGlobal*",
12     qualified: !!Object.getOwnPropertyDescriptor(env, "qualified"),
13     prop: !!Object.getOwnPropertyDescriptor(env, "prop"),
14     lexical: !!Object.getOwnPropertyDescriptor(env, "lexical"),
15   });
17   env = funcs.getEnclosingEnvironmentObject(env);
20 const EXPORTED_SYMBOLS = ["envs"];