mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
17 lines
321 B
TypeScript
17 lines
321 B
TypeScript
//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames18_ES6.ts] ////
|
|
|
|
//// [computedPropertyNames18_ES6.ts]
|
|
function foo() {
|
|
var obj = {
|
|
[this.bar]: 0
|
|
}
|
|
}
|
|
|
|
//// [computedPropertyNames18_ES6.js]
|
|
"use strict";
|
|
function foo() {
|
|
var obj = {
|
|
[this.bar]: 0
|
|
};
|
|
}
|