Bug 1341256 - Fix module namespace object get handler

This commit is contained in:
janekptacijarabaci 2018-04-14 08:57:05 +02:00 committed by Roy Tam
commit eaf8fcd215
2 changed files with 7 additions and 2 deletions

View file

@ -45,6 +45,9 @@ b.evaluation();
testHasNames(getModuleEnvironmentNames(b), ["ns", "x"]);
let ns = getModuleEnvironmentValue(b, "ns");
testHasNames(Object.keys(ns), ["a", "b"]);
assertEq(ns.a, 1);
assertEq(ns.b, 2);
assertEq(ns.c, undefined);
assertEq(getModuleEnvironmentValue(b, "x"), 3);
// Test module namespace internal methods as defined in 9.4.6