mirror of
https://github.com/openharmony/developtools_ace-ets2bundle.git
synced 2026-07-21 03:55:23 -04:00
Bugfix: fixed init localStorageLink variable
Signed-off-by: laibo102 <laibo2@huawei.com> Change-Id: I828b3dd1b3a64d0d69895989e9437f39fc10281b
This commit is contained in:
@@ -294,9 +294,8 @@ function createLocalStroageCallExpression(node: ts.PropertyDeclaration, name: st
|
||||
ts.factory.createStringLiteral(localStorageLink && !localStorageProp ?
|
||||
Array.from(localStorageLink)[0] : !localStorageLink && localStorageProp ?
|
||||
Array.from(localStorageProp)[0] : COMPONENT_CONSTRUCTOR_UNDEFINED),
|
||||
ts.factory.createNumericLiteral(node.initializer ? node.initializer.getText() :
|
||||
COMPONENT_CONSTRUCTOR_UNDEFINED), ts.factory.createThis(),
|
||||
ts.factory.createStringLiteral(name || COMPONENT_CONSTRUCTOR_UNDEFINED)
|
||||
node.initializer ? node.initializer : ts.factory.createNumericLiteral(COMPONENT_CONSTRUCTOR_UNDEFINED),
|
||||
ts.factory.createThis(), ts.factory.createStringLiteral(name || COMPONENT_CONSTRUCTOR_UNDEFINED)
|
||||
]
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user