mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-25 22:08:59 +00:00
This is solved by allowing Identifier nodes to produce a Reference with the global object as base.
16 lines
235 B
JavaScript
16 lines
235 B
JavaScript
load("test-common.js");
|
|
|
|
try {
|
|
a = 1;
|
|
assert(delete a === true);
|
|
|
|
assertThrowsError(() => {
|
|
a;
|
|
}, {
|
|
error: ReferenceError
|
|
});
|
|
|
|
console.log("PASS");
|
|
} catch (e) {
|
|
console.log("FAIL: " + e);
|
|
}
|