2
2
3
3
exports [` compiler: codegen ArrayExpression 1` ] = `
4
4
"
5
- return function render() {
5
+ return function render(_ctx, _cache ) {
6
6
with (this ) {
7
7
return [
8
8
foo ,
@@ -14,18 +14,14 @@ return function render() {
14
14
15
15
exports [` compiler: codegen CacheExpression 1` ] = `
16
16
"
17
- export function render() {
18
- const _ctx = this
19
- const _cache = _ctx .$cache
17
+ export function render(_ctx, _cache) {
20
18
return _cache [1 ] || (_cache [1 ] = foo )
21
19
} "
22
20
` ;
23
21
24
22
exports [` compiler: codegen CacheExpression w/ isVNode: true 1` ] = `
25
23
"
26
- export function render() {
27
- const _ctx = this
28
- const _cache = _ctx .$cache
24
+ export function render(_ctx, _cache) {
29
25
return _cache [1 ] || (
30
26
_setBlockTracking (- 1 ),
31
27
_cache [1 ] = foo ,
@@ -37,7 +33,7 @@ export function render() {
37
33
38
34
exports [` compiler: codegen ConditionalExpression 1` ] = `
39
35
"
40
- return function render() {
36
+ return function render(_ctx, _cache ) {
41
37
with (this ) {
42
38
return ok
43
39
? foo()
@@ -50,7 +46,7 @@ return function render() {
50
46
51
47
exports [` compiler: codegen Element (callExpression + objectExpression + TemplateChildNode[]) 1` ] = `
52
48
"
53
- return function render() {
49
+ return function render(_ctx, _cache ) {
54
50
with (this ) {
55
51
return _createVNode(\\"div \\", {
56
52
id : \\"foo \\",
@@ -65,7 +61,7 @@ return function render() {
65
61
66
62
exports [` compiler: codegen SequenceExpression 1` ] = `
67
63
"
68
- return function render() {
64
+ return function render(_ctx, _cache ) {
69
65
with (this ) {
70
66
return (foo , bar (baz ))
71
67
}
@@ -74,7 +70,7 @@ return function render() {
74
70
75
71
exports [` compiler: codegen assets + temps 1` ] = `
76
72
"
77
- return function render() {
73
+ return function render(_ctx, _cache ) {
78
74
with (this ) {
79
75
const _component_Foo = _resolveComponent(\\"Foo \\")
80
76
const _component_bar_baz = _resolveComponent(\\"bar -baz \\")
@@ -90,7 +86,7 @@ return function render() {
90
86
91
87
exports [` compiler: codegen comment 1` ] = `
92
88
"
93
- return function render() {
89
+ return function render(_ctx, _cache ) {
94
90
with (this ) {
95
91
return _createCommentVNode(\\"foo \\")
96
92
}
@@ -99,7 +95,7 @@ return function render() {
99
95
100
96
exports [` compiler: codegen compound expression 1` ] = `
101
97
"
102
- return function render() {
98
+ return function render(_ctx, _cache ) {
103
99
with (this ) {
104
100
return _ctx.foo + _toDisplayString(bar ) + nested
105
101
}
@@ -108,7 +104,7 @@ return function render() {
108
104
109
105
exports [` compiler: codegen forNode 1` ] = `
110
106
"
111
- return function render() {
107
+ return function render(_ctx, _cache ) {
112
108
with (this ) {
113
109
return (foo , bar )
114
110
}
@@ -118,7 +114,7 @@ return function render() {
118
114
exports [` compiler: codegen function mode preamble 1` ] = `
119
115
"const _Vue = Vue
120
116
121
- return function render() {
117
+ return function render(_ctx, _cache ) {
122
118
with (this ) {
123
119
const { createVNode: _createVNode , resolveDirective: _resolveDirective } = _Vue
124
120
@@ -130,8 +126,7 @@ return function render() {
130
126
exports [` compiler: codegen function mode preamble w/ prefixIdentifiers: true 1` ] = `
131
127
"const { createVNode : _createVNode , resolveDirective : _resolveDirective } = Vue
132
128
133
- return function render() {
134
- const _ctx = this
129
+ return function render(_ctx, _cache) {
135
130
return null
136
131
} "
137
132
` ;
@@ -141,7 +136,7 @@ exports[`compiler: codegen hoists 1`] = `
141
136
const _hoisted_1 = hello
142
137
const _hoisted_2 = { id : \\" foo\\ " }
143
138
144
- return function render() {
139
+ return function render(_ctx, _cache ) {
145
140
with (this ) {
146
141
return null
147
142
}
@@ -150,7 +145,7 @@ return function render() {
150
145
151
146
exports [` compiler: codegen ifNode 1` ] = `
152
147
"
153
- return function render() {
148
+ return function render(_ctx, _cache ) {
154
149
with (this ) {
155
150
return (foo , bar )
156
151
}
@@ -159,7 +154,7 @@ return function render() {
159
154
160
155
exports [` compiler: codegen interpolation 1` ] = `
161
156
"
162
- return function render() {
157
+ return function render(_ctx, _cache ) {
163
158
with (this ) {
164
159
return _toDisplayString(hello )
165
160
}
@@ -169,8 +164,7 @@ return function render() {
169
164
exports [` compiler: codegen module mode preamble 1` ] = `
170
165
"import { createVNode as _createVNode , resolveDirective as _resolveDirective } from \\ "vue\\ "
171
166
172
- export function render() {
173
- const _ctx = this
167
+ export function render(_ctx, _cache) {
174
168
return null
175
169
} "
176
170
` ;
@@ -181,23 +175,14 @@ exports[`compiler: codegen module mode preamble w/ optimizeBindings: true 1`] =
181
175
// Binding optimization for webpack code-split
182
176
const _createVNode = createVNode, _resolveDirective = resolveDirective
183
177
184
- export function render() {
185
- const _ctx = this
186
- return null
187
- } "
188
- ` ;
189
-
190
- exports [` compiler: codegen prefixIdentifiers: true should inject _ctx statement 1` ] = `
191
- "
192
- return function render() {
193
- const _ctx = this
178
+ export function render(_ctx, _cache) {
194
179
return null
195
180
} "
196
181
` ;
197
182
198
183
exports [` compiler: codegen static text 1` ] = `
199
184
"
200
- return function render() {
185
+ return function render(_ctx, _cache ) {
201
186
with (this ) {
202
187
return \\"hello\\"
203
188
}
@@ -206,7 +191,7 @@ return function render() {
206
191
207
192
exports [` compiler: codegen temps 1` ] = `
208
193
"
209
- return function render() {
194
+ return function render(_ctx, _cache ) {
210
195
with (this ) {
211
196
let _temp0 , _temp1 , _temp2
212
197
0 commit comments