mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
Libraries: Move to Userland/Libraries/
This commit is contained in:
parent
dc28c07fa5
commit
13d7c09125
Notes:
sideshowbarker
2024-07-18 23:53:55 +09:00
Author: https://github.com/awesomekling
Commit: 13d7c09125
1857 changed files with 266 additions and 274 deletions
|
@ -1,17 +0,0 @@
|
|||
// I'm not sure how this test passed before the refactor, but it definitely doesn't work at all
|
||||
test.skip("reassignment to const", () => {
|
||||
const constantValue = 1;
|
||||
expect(() => {
|
||||
constantValue = 2;
|
||||
}).toThrowWithMessage(TypeError, "Invalid assignment to const variable");
|
||||
expect(constantValue).toBe(1);
|
||||
});
|
||||
|
||||
test("const creation in inner scope", () => {
|
||||
const constantValue = 1;
|
||||
do {
|
||||
const constantValue = 2;
|
||||
expect(constantValue).toBe(2);
|
||||
} while (false);
|
||||
expect(constantValue).toBe(1);
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue