mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 13:35:07 +00:00
Libraries: Move to Userland/Libraries/
This commit is contained in:
parent
dc28c07fa5
commit
13d7c09125
1857 changed files with 266 additions and 274 deletions
|
@ -1,24 +0,0 @@
|
|||
test("basic with statement functionality", () => {
|
||||
var object = { foo: 5, bar: 6, baz: 7 };
|
||||
var qux = 1;
|
||||
|
||||
var bar = 99;
|
||||
|
||||
with (object) {
|
||||
expect(foo).toBe(5);
|
||||
expect(bar).toBe(6);
|
||||
expect(baz).toBe(7);
|
||||
expect(qux).toBe(1);
|
||||
expect(typeof quz).toBe("undefined");
|
||||
|
||||
bar = 2;
|
||||
}
|
||||
|
||||
expect(object.bar).toBe(2);
|
||||
|
||||
expect(bar).toBe(99);
|
||||
});
|
||||
|
||||
test("syntax error in strict mode", () => {
|
||||
expect("'use strict'; with (foo) {}").not.toEval();
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue