Files
scriptc/tests/coverage-fixtures/js-gap/gap.js
Chris Tate a07998f667 Expand static three.js workflows and host integration (#621)
* Expand static three.js workflows and host integration

* Preserve JavaScript class state in static three.js workflows

* Preserve inferred JavaScript behavior across static workflows

* Preserve inferred callables and native compatibility boundaries

* Retain annotated JavaScript factory exports and bootstrap-safe call spreads

* Preserve Buffer and child callback identities in static packages

* Clarify JavaScript symbol spread support
2026-10-02 19:56:34 -05:00

17 lines
368 B
JavaScript

// noImplicitAny is off in this directory. Inferred JavaScript and the
// neighboring JSDoc-typed function both compile as native code, including
// when the optional island engine is enabled.
'use strict';
function untyped(x) {
return x * 2;
}
/** @param {number} n */
function typed(n) {
return n * 3;
}
console.log(`${untyped(21)}`);
console.log(typed(14));