mirror of
https://github.com/swc-project/swc.git
synced 2024-12-24 22:22:34 +03:00
18 lines
437 B
TypeScript
18 lines
437 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];
|