mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
10 lines
172 B
JavaScript
10 lines
172 B
JavaScript
function assert(x) {
|
|
if (!x) throw new Error("assertion failed");
|
|
}
|
|
var obj = { foo: 1 };
|
|
with (obj) {
|
|
var foo = 2;
|
|
}
|
|
assert(foo === undefined);
|
|
assert(obj.foo === 2);
|