mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-29 07:04:09 +08:00
- Compile Three.js capsule, sphere, and ray collision queries for native and WebAssembly targets. - Preserve JavaScript constructor results, shared arrays, and nullable class fields. - Resolve static methods against their exact class receivers.
5 lines
197 B
JavaScript
5 lines
197 B
JavaScript
const input = JSON.parse('[3, -4, 0, -0]');
|
|
for (const value of input) console.log(-value, Object.is(-value, -0));
|
|
const object = { get() { return JSON.parse('5'); } };
|
|
console.log(-object.get());
|