blob: de9660894ab58b76c6e19ccf7db026240c9d21d9 [file] [log] [blame]
function test(actual, expected) {
if (actual !== expected)
throw new Error('bad value: ' + actual);
}
var global = new Function('return this')();
var Cocoa = 'Cocoa';
global[Symbol.unscopables] = {
Cocoa: true
};
test(Cocoa, "Cocoa");
(function () {
var Cocoa = 'local'
with (global) {
test(Cocoa, "local");
}
}());