Fix incorrect value retrieving in module-code test (#741)

Fix language/module-code/namespace/internals/get-own-property-str-found-init.js.
This commit is contained in:
Yusuke Suzuki 2016-08-05 00:19:36 +09:00 committed by Leo Balter
parent d6580e8b66
commit dfd1fb3a97
1 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ assert.sameValue(
Object.prototype.hasOwnProperty.call(ns, 'indirect'), true
);
desc = Object.getOwnPropertyDescriptor(ns, 'indirect');
assert.sameValue(desc.indirect, 201);
assert.sameValue(desc.value, 201);
assert.sameValue(desc.enumerable, true, 'indirect enumerable');
assert.sameValue(desc.writable, true, 'indirect writable');
assert.sameValue(desc.configurable, false, 'indirect configurable');
@ -54,7 +54,7 @@ assert.sameValue(
Object.prototype.hasOwnProperty.call(ns, 'default'), true
);
desc = Object.getOwnPropertyDescriptor(ns, 'default');
assert.sameValue(desc.default, 302);
assert.sameValue(desc.value, 302);
assert.sameValue(desc.enumerable, true, 'default enumerable');
assert.sameValue(desc.writable, true, 'default writable');
assert.sameValue(desc.configurable, false, 'default configurable');