Evan You 2 лет назад
Родитель
Сommit
96e8e99304

+ 1 - 1
packages/compiler-core/__tests__/transforms/transformExpressions.spec.ts

@@ -431,7 +431,7 @@ describe('compiler: expression transform', () => {
     })
   })
 
-  test('should not bail constant on strings w/ ()', () => {
+  test('should bail constant for global identifiers w/ new or call expressions', () => {
     const node = parseWithExpressionTransform(
       `{{ new Date().getFullYear() }}`,
     ) as InterpolationNode