Skip to content

Commit

Permalink
Update test refs
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Sep 13, 2023
1 parent b8b56c9 commit d6435e7
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 25 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
warning - [parse] [project]/packages/next/dist/server/web/sandbox/context.js /packages/next/dist/server/web/sandbox/context.js:64:56 lint TP1004 fs.readFile(???*0*) is very dynamic
60 | }
61 | async function loadWasm(wasm) {
62 | const modules = {};
63 | await Promise.all(wasm.map(async (binding)=>{
warning - [parse] [project]/packages/next/dist/server/web/sandbox/context.js /packages/next/dist/server/web/sandbox/context.js:65:56 lint TP1004 fs.readFile(???*0*) is very dynamic
61 | }
62 | async function loadWasm(wasm) {
63 | const modules = {};
64 | await Promise.all(wasm.map(async (binding)=>{
+ v
64 + const module1 = await WebAssembly.compile(await _fs.promises.readFile(binding.filePath));
65 + const module1 = await WebAssembly.compile(await _fs.promises.readFile(binding.filePath));
+ ^
65 | modules[binding.name] = module1;
66 | }));
67 | return modules;
68 | }
66 | modules[binding.name] = module1;
67 | }));
68 | return modules;
69 | }

- *0* ???*1*["filePath"]
⚠️ unknown object
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
warning - [parse] [project]/packages/next/dist/server/web/sandbox/context.js /packages/next/dist/server/web/sandbox/context.js:357:28 lint TP1004 fs.readFileSync(???*0*, "utf-8") is very dynamic
353 | }
354 | const moduleContext = lazyModuleContext;
355 | const evaluateInContext = (filepath)=>{
356 | if (!moduleContext.paths.has(filepath)) {
+ v
357 + const content = (0, _fs.readFileSync)(filepath, "utf-8");
+ ^
358 | try {
359 | (0, _vm.runInContext)(content, moduleContext.runtime.context, {
360 | filename: filepath
361 | });

- *0* filepath
⚠️ pattern without value

This file was deleted.

0 comments on commit d6435e7

Please sign in to comment.