mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
24 lines
439 B
TypeScript
24 lines
439 B
TypeScript
//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames5_ES6.ts] ////
|
|
|
|
//// [computedPropertyNames5_ES6.ts]
|
|
declare var b: boolean;
|
|
var v = {
|
|
[b]: 0,
|
|
[true]: 1,
|
|
[[]]: 0,
|
|
[{}]: 0,
|
|
[undefined]: undefined,
|
|
[null]: null
|
|
}
|
|
|
|
//// [computedPropertyNames5_ES6.js]
|
|
"use strict";
|
|
var v = {
|
|
[b]: 0,
|
|
[true]: 1,
|
|
[[]]: 0,
|
|
[{}]: 0,
|
|
[undefined]: undefined,
|
|
[null]: null
|
|
};
|