mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-20 09:49:15 +03:00
9 lines
219 B
JavaScript
9 lines
219 B
JavaScript
|
test("Issue #3459, exception in computed property expression", () => {
|
||
|
expect(() => {
|
||
|
"foo"[bar];
|
||
|
}).toThrow(ReferenceError);
|
||
|
expect(() => {
|
||
|
"foo"[bar]();
|
||
|
}).toThrow(ReferenceError);
|
||
|
});
|