13 lines
287 B
JavaScript
13 lines
287 B
JavaScript
//// [objectLiteralShorthandPropertiesErrorFromNoneExistingIdentifier.ts]
|
|
var x = {
|
|
x, // OK
|
|
undefinedVariable // Error
|
|
}
|
|
|
|
|
|
//// [objectLiteralShorthandPropertiesErrorFromNoneExistingIdentifier.js]
|
|
var x = {
|
|
x: x,
|
|
undefinedVariable: undefinedVariable // Error
|
|
};
|