Skip to content

Commit 56f44be

Browse files
authored
Delete operator (#1408)
1 parent 846811e commit 56f44be

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/slang-nodes/PrefixExpression.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export class PrefixExpression extends SlangNode {
3030
this.updateMetadata(this.operand);
3131

3232
if (this.operator === 'delete') {
33-
this.operator = `${this.operator} `;
33+
this.operator = 'delete ';
3434
}
3535
}
3636

src/slang-utils/create-hug-function.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { TupleValue } from '../slang-nodes/TupleValue.js';
55
import { TerminalNode } from '../slang-nodes/TerminalNode.js';
66
import { isBinaryOperation } from './is-binary-operation.js';
77

8-
import type { Expression } from '../slang-nodes/Expression.js';
8+
import type { Expression } from '../slang-nodes/Expression.ts';
99

1010
export function createHugFunction(
1111
huggableOperators: string[]

0 commit comments

Comments
 (0)