Sign in
webkit
/
WebKit
/
3480786af6abe0fbd0f86124e6c6350c8ceacd89
/
.
/
JSTests
/
es6
/
Set_constructor_invokes_add.js
blob: 21f2676a8fe095f891513f037752eeac5e6aa20b [
file
] [
log
] [
blame
]
function
test
()
{
var
passed
=
false
;
var
_add
=
Set
.
prototype
.
add
;
Set
.
prototype
.
add
=
function
(
v
)
{
passed
=
true
;
};
new
Set
([
1
]);
Set
.
prototype
.
add
=
_add
;
return
passed
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);