1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
|
=== tests/cases/conformance/salsa/usage.js ===
const x = require("./lateBoundAssignmentDeclarationSupport5.js");
>x : Symbol(x, Decl(usage.js, 0, 5))
>require : Symbol(require)
>"./lateBoundAssignmentDeclarationSupport5.js" : Symbol(x, Decl(lateBoundAssignmentDeclarationSupport5.js, 0, 0))
const inst = new x.F();
>inst : Symbol(inst, Decl(usage.js, 1, 5))
>x.F : Symbol(x.F, Decl(lateBoundAssignmentDeclarationSupport5.js, 12, 22))
>x : Symbol(x, Decl(usage.js, 0, 5))
>F : Symbol(x.F, Decl(lateBoundAssignmentDeclarationSupport5.js, 12, 22))
const y = inst["my-fake-sym"];
>y : Symbol(y, Decl(usage.js, 2, 5))
>inst : Symbol(inst, Decl(usage.js, 1, 5))
const z = inst[x.S];
>z : Symbol(z, Decl(usage.js, 3, 5))
>inst : Symbol(inst, Decl(usage.js, 1, 5))
>x.S : Symbol(x.S, Decl(lateBoundAssignmentDeclarationSupport5.js, 13, 21))
>x : Symbol(x, Decl(usage.js, 0, 5))
>S : Symbol(x.S, Decl(lateBoundAssignmentDeclarationSupport5.js, 13, 21))
=== tests/cases/conformance/salsa/lateBoundAssignmentDeclarationSupport5.js ===
// currently unsupported
const _sym = Symbol();
>_sym : Symbol(_sym, Decl(lateBoundAssignmentDeclarationSupport5.js, 1, 5))
>Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --))
const _str = "my-fake-sym";
>_str : Symbol(_str, Decl(lateBoundAssignmentDeclarationSupport5.js, 2, 5))
function F() {
>F : Symbol(F, Decl(lateBoundAssignmentDeclarationSupport5.js, 2, 27), Decl(lateBoundAssignmentDeclarationSupport5.js, 5, 1))
}
F.prototype = {
>F.prototype : Symbol(F.prototype, Decl(lateBoundAssignmentDeclarationSupport5.js, 5, 1))
>F : Symbol(F, Decl(lateBoundAssignmentDeclarationSupport5.js, 2, 27), Decl(lateBoundAssignmentDeclarationSupport5.js, 5, 1))
>prototype : Symbol(F.prototype, Decl(lateBoundAssignmentDeclarationSupport5.js, 5, 1))
[_sym]: "ok",
>[_sym] : Symbol([_sym], Decl(lateBoundAssignmentDeclarationSupport5.js, 6, 15))
>_sym : Symbol(_sym, Decl(lateBoundAssignmentDeclarationSupport5.js, 1, 5))
[_str]: "ok"
>[_str] : Symbol([_str], Decl(lateBoundAssignmentDeclarationSupport5.js, 7, 17))
>_str : Symbol(_str, Decl(lateBoundAssignmentDeclarationSupport5.js, 2, 5))
}
const inst = new F();
>inst : Symbol(inst, Decl(lateBoundAssignmentDeclarationSupport5.js, 10, 5))
>F : Symbol(F, Decl(lateBoundAssignmentDeclarationSupport5.js, 2, 27), Decl(lateBoundAssignmentDeclarationSupport5.js, 5, 1))
const _y = inst[_str];
>_y : Symbol(_y, Decl(lateBoundAssignmentDeclarationSupport5.js, 11, 5))
>inst : Symbol(inst, Decl(lateBoundAssignmentDeclarationSupport5.js, 10, 5))
>_str : Symbol(_str, Decl(lateBoundAssignmentDeclarationSupport5.js, 2, 5))
const _z = inst[_sym];
>_z : Symbol(_z, Decl(lateBoundAssignmentDeclarationSupport5.js, 12, 5))
>inst : Symbol(inst, Decl(lateBoundAssignmentDeclarationSupport5.js, 10, 5))
>_sym : Symbol(_sym, Decl(lateBoundAssignmentDeclarationSupport5.js, 1, 5))
module.exports.F = F;
>module.exports.F : Symbol(F, Decl(lateBoundAssignmentDeclarationSupport5.js, 12, 22))
>module.exports : Symbol(F, Decl(lateBoundAssignmentDeclarationSupport5.js, 12, 22))
>module : Symbol(module, Decl(lateBoundAssignmentDeclarationSupport5.js, 12, 22))
>exports : Symbol(module.exports, Decl(lateBoundAssignmentDeclarationSupport5.js, 0, 0))
>F : Symbol(F, Decl(lateBoundAssignmentDeclarationSupport5.js, 12, 22))
>F : Symbol(F, Decl(lateBoundAssignmentDeclarationSupport5.js, 2, 27), Decl(lateBoundAssignmentDeclarationSupport5.js, 5, 1))
module.exports.S = _sym;
>module.exports.S : Symbol(S, Decl(lateBoundAssignmentDeclarationSupport5.js, 13, 21))
>module.exports : Symbol(S, Decl(lateBoundAssignmentDeclarationSupport5.js, 13, 21))
>module : Symbol(module, Decl(lateBoundAssignmentDeclarationSupport5.js, 12, 22))
>exports : Symbol(module.exports, Decl(lateBoundAssignmentDeclarationSupport5.js, 0, 0))
>S : Symbol(S, Decl(lateBoundAssignmentDeclarationSupport5.js, 13, 21))
>_sym : Symbol(_sym, Decl(lateBoundAssignmentDeclarationSupport5.js, 1, 5))
|