293816875c
* Support some late-bound special property assignments * Integrate PR feedback * PR feedback * Enable declaration on core tests * Specialize type of binary expression used for late binding, speculative fix to navigation bar, merge check and type for elem/property accesses * Add test showing current nav bar behavior (specifically the lack thereof)
17 lines
454 B
TypeScript
17 lines
454 B
TypeScript
// @allowJs: true
|
|
// @checkJs: true
|
|
// @noEmit: true
|
|
// @strict: true
|
|
// @target: es6
|
|
// @filename: lateBoundAssignmentDeclarationSupport2.js
|
|
// currently unsupported
|
|
const _sym = Symbol();
|
|
const _str = "my-fake-sym";
|
|
|
|
module.exports[_sym] = "ok";
|
|
module.exports[_str] = "ok";
|
|
module.exports.S = _sym;
|
|
// @filename: usage.js
|
|
const x = require("./lateBoundAssignmentDeclarationSupport2.js");
|
|
const y = x["my-fake-sym"];
|
|
const z = x[x.S];
|