mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-30 12:50:58 +00: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);
|
||
|
|
});
|