Skip to content

Commit 6988307

Browse files
committed
[Lara-JS] Reverts changes that where introducing regressions
1 parent 8f5189e commit 6988307

2 files changed

Lines changed: 1 addition & 6 deletions

File tree

Lara-JS/jest/WeaverLegacyTester.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,6 @@ export class WeaverLegacyTester {
160160
JavaTypes.FileList.newInstance(javaFiles)
161161
);
162162

163-
javaDatastore.set(
164-
JavaTypes.LaraiKeys.OUTPUT_FOLDER,
165-
new JavaTypes.File("woven_code")
166-
);
167-
168163
javaWeaver.run(javaDatastore);
169164
await import(path.join(this.basePackage, laraResource));
170165
javaWeaver.end();

Lara-JS/src-api/lara/core/LaraCore.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ export function arrayFromArgs(args: any, start = 0) {
242242

243243
// If only one element and is already an array, just return the array
244244
if (args.length === start + 1 && isArray(args[start])) {
245-
return args;
245+
return args[start];
246246
}
247247

248248
if (args.length === start + 1 && isJavaList(args[start])) {

0 commit comments

Comments
 (0)