Sign in
webkit
/
WebKit
/
2ab9dfaee5c791e0d7b2c0893a55ced8677e2e2a
/
.
/
JSTests
/
es6
/
well-known_symbols_Symbol.unscopables.js
blob: eee68e97fc8262b6fe871a3760dc048c655125d4 [
file
] [
log
] [
blame
]
function
test
()
{
var
a
=
{
foo
:
1
,
bar
:
2
};
a
[
Symbol
.
unscopables
]
=
{
bar
:
true
};
with
(
a
)
{
return
foo
===
1
&&
typeof
bar
===
"undefined"
;
}
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);