Skip to content

Commit cbf9b5c

Browse files
Merge pull request gpujs#506 from gnandretta/develop
Fix calls to FunctionNode.astErrorOutput, it's not a constructor
2 parents d01a0d5 + cf4cd27 commit cbf9b5c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/backend/cpu/function-node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ class CPUFunctionNode extends FunctionNode {
282282
astAssignmentExpression(assNode, retArr) {
283283
const declaration = this.getDeclaration(assNode.left);
284284
if (declaration && !declaration.assignable) {
285-
throw new this.astErrorOutput(`Variable ${assNode.left.name} is not assignable here`, assNode);
285+
throw this.astErrorOutput(`Variable ${assNode.left.name} is not assignable here`, assNode);
286286
}
287287
this.astGeneric(assNode.left, retArr);
288288
retArr.push(assNode.operator);

src/backend/web-gl/function-node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ class WebGLFunctionNode extends FunctionNode {
743743
astAssignmentExpression(assNode, retArr) {
744744
const declaration = this.getDeclaration(assNode.left);
745745
if (declaration && !declaration.assignable) {
746-
throw new this.astErrorOutput(`Variable ${assNode.left.name} is not assignable here`, assNode);
746+
throw this.astErrorOutput(`Variable ${assNode.left.name} is not assignable here`, assNode);
747747
}
748748
// TODO: casting needs implemented here
749749
if (assNode.operator === '%=') {

0 commit comments

Comments
 (0)