Sign in
webkit
/
WebKit
/
4ba7fe936ef6ae9d62102c8eed5d38ba3f6d5cc4
/
.
/
JSTests
/
stress
/
freeze-setter.js
blob: e43caf1d26340c1c67519838453fc8cb7992724e [
file
] [
log
] [
blame
]
//@ runDefault
"use strict"
;
let x
;
let o
=
{
set
foo
(
value
)
{
x
=
value
;
}
};
Object
.
freeze
(
o
);
o
.
foo
=
42
;
if
(
x
!=
42
)
throw
"Error: bad result: "
+
x
;