Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion test/js-api/global/value-get-set.any.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,14 @@ test(() => {
const setter = desc.set;
assert_equals(typeof setter, "function");

assert_throws_js(TypeError, () => setter.call(global));
assert_equals(global.value, 0);

assert_equals(setter.call(global, undefined), undefined);
assert_equals(global.value, 0);

// Should behave as if 'undefined' was passed as the argument.
assert_equals(setter.call(global), undefined);
assert_equals(global.value, 0);
}, "Calling setter without argument");

test(() => {
Expand Down
Loading