mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-21 05:50:55 +08:00
* Compile Effect generators statically * test: declare the dormant array write's expected fence
17 lines
485 B
JavaScript
17 lines
485 B
JavaScript
class State {
|
|
bytes;
|
|
name;
|
|
count;
|
|
constructor() {
|
|
console.log(typeof this.bytes, this.bytes ? "set" : "unset");
|
|
console.log(typeof this.name, this.name ? "set" : "unset");
|
|
console.log(typeof this.count, this.count === undefined);
|
|
this.bytes = new Int32Array([7, 9]);
|
|
this.name = "ready";
|
|
this.count = 3;
|
|
console.log(this.bytes ? this.bytes[1] : -1, this.name, this.count);
|
|
}
|
|
value() { return this.bytes[0]; }
|
|
}
|
|
console.log(new State().value());
|