mirror of
https://github.com/swc-project/swc.git
synced 2024-12-20 04:01:39 +03:00
18 lines
416 B
TypeScript
18 lines
416 B
TypeScript
// @allowJs: true
|
|
// @checkJs: true
|
|
// @noEmit: true
|
|
// @strict: true
|
|
// @target: es6
|
|
// @filename: lateBoundAssignmentDeclarationSupport1.js
|
|
// currently unsupported
|
|
const _sym = Symbol();
|
|
const _str = "my-fake-sym";
|
|
|
|
exports[_sym] = "ok";
|
|
exports[_str] = "ok";
|
|
exports.S = _sym;
|
|
// @filename: usage.js
|
|
const x = require("./lateBoundAssignmentDeclarationSupport1.js");
|
|
const y = x["my-fake-sym"];
|
|
const z = x[x.S];
|