mirror of
https://github.com/RGBCube/serenity
synced 2025-05-15 13:35:00 +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);
|
|
}
|