Sign in
webkit
/
WebKit
/
2ab9dfaee5c791e0d7b2c0893a55ced8677e2e2a
/
.
/
JSTests
/
es6
/
Proxy_internal_get_calls_JSON.stringify.js
blob: 21df66c270bce2280c7044f1c8f09b754dc841fa [
file
] [
log
] [
blame
]
function
test
()
{
// JSON.stringify -> Get -> [[Get]]
var
get
=
[];
var
p
=
new
Proxy
({},
{
get
:
function
(
o
,
k
)
{
get
.
push
(
k
);
return
o
[
k
];
}});
JSON
.
stringify
(
p
);
return
get
+
''
===
"toJSON"
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);