Skip to content

Commit 93f91b3

Browse files
committed
commit ember-source patch
1 parent df655be commit 93f91b3

File tree

3 files changed

+37
-2
lines changed

3 files changed

+37
-2
lines changed

package.json

+5
Original file line numberDiff line numberDiff line change
@@ -90,5 +90,10 @@
9090
"release": true,
9191
"tokenRef": "GITHUB_AUTH"
9292
}
93+
},
94+
"pnpm": {
95+
"patchedDependencies": {
96+
"ember-source@6.1.0": "patches/ember-source@6.1.0.patch"
97+
}
9398
}
9499
}

patches/ember-source@6.1.0.patch

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
diff --git a/dist/ember-template-compiler.js b/dist/ember-template-compiler.js
2+
index 9e2c91f05543927b94a563df642e3cd34c7300b2..d30d3ca0cffa74b7391ffa70406cc5b4f7108d8a 100644
3+
--- a/dist/ember-template-compiler.js
4+
+++ b/dist/ember-template-compiler.js
5+
@@ -11676,7 +11676,7 @@ var define, require;
6+
});
7+
}
8+
localVar(name, symbol, isTemplateLocal, loc) {
9+
- return debugAssert("this" !== name, "You called builders.var() with 'this'. Call builders.this instead"), debugAssert("@" !== name[0], `You called builders.var() with '${name}'. Call builders.at('${name}') instead`), new LocalVarReference({
10+
+ return debugAssert("@" !== name[0], `You called builders.var() with '${name}'. Call builders.at('${name}') instead`), new LocalVarReference({
11+
loc: loc,
12+
name: name,
13+
isTemplateLocal: isTemplateLocal,
14+
@@ -12054,6 +12054,10 @@ var define, require;
15+
offsets = block.loc(head.loc);
16+
switch (head.type) {
17+
case "ThisHead":
18+
+ if (block.hasBinding('this')) {
19+
+ let [symbol, isRoot] = table.get('this');
20+
+ return block.builder.localVar('this', symbol, isRoot, offsets);
21+
+ }
22+
return builder.self(offsets);
23+
case "AtHead":
24+
{

pnpm-lock.yaml

+8-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)