Skip to content

Commit 165dd49

Browse files
committed
whoops lol
1 parent 891b31d commit 165dd49

File tree

1 file changed

+5
-7
lines changed
  • packages/@glimmer/runtime/lib/compiled/opcodes

1 file changed

+5
-7
lines changed

packages/@glimmer/runtime/lib/compiled/opcodes/dom.ts

+5-7
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import {
2222
import { associateDestroyableChild, destroy } from '@glimmer/destroyable';
2323
import { getInternalModifierManager } from '@glimmer/manager';
2424
import { createComputeRef, isConstRef, valueForRef } from '@glimmer/reference';
25-
import { debugToString, expect, isObject } from '@glimmer/util';
25+
import { assign, debugToString, expect, isObject } from '@glimmer/util';
2626
import { consumeTag, CURRENT_TAG, validateTag, valueForTag } from '@glimmer/validator';
2727
import { $t0, CurriedTypes, Op } from '@glimmer/vm';
2828

@@ -180,11 +180,11 @@ APPEND_OPCODES.add(Op.DynamicModifier, (vm) => {
180180
owner = curriedOwner;
181181

182182
if (positional !== undefined) {
183-
args.positional = [...positional, ...outerPositional] as CapturedPositionalArguments;
183+
args.positional = positional.concat(outerPositional) as CapturedPositionalArguments;
184184
}
185185

186186
if (named !== undefined) {
187-
args.named = Object.assign({}, named, outerNamed);
187+
args.named = assign({}, ...named, outerNamed);
188188
}
189189
} else {
190190
hostDefinition = value;
@@ -196,10 +196,8 @@ APPEND_OPCODES.add(Op.DynamicModifier, (vm) => {
196196
if (manager === null) {
197197
if (import.meta.env.DEV) {
198198
throw new Error(
199-
`Expected a dynamic modifier definition, but received an object or function that did not have a modifier manager associated with it. The dynamic invocation was \`{{${
200-
ref.debugLabel
201-
}}}\`, and the incorrect definition is the value at the path \`${
202-
ref.debugLabel
199+
`Expected a dynamic modifier definition, but received an object or function that did not have a modifier manager associated with it. The dynamic invocation was \`{{${ref.debugLabel
200+
}}}\`, and the incorrect definition is the value at the path \`${ref.debugLabel
203201
}\`, which was: ${debugToString!(hostDefinition)}`
204202
);
205203
} else {

0 commit comments

Comments
 (0)