Unverified Commit 2d80f1a2 authored by Niklas Mischkulnig's avatar Niklas Mischkulnig Committed by GitHub

Turbopack: JsAnalyzer parse AssignExpr (#83962)

parent ffa66ff5
...@@ -737,6 +737,8 @@ impl EvalContext { ...@@ -737,6 +737,8 @@ impl EvalContext {
.. ..
}) => JsValue::WellKnownObject(WellKnownObjectKind::ImportMeta), }) => JsValue::WellKnownObject(WellKnownObjectKind::ImportMeta),
Expr::Assign(AssignExpr { right, .. }) => self.eval(right),
_ => JsValue::unknown_empty(true, "unsupported expression"), _ => JsValue::unknown_empty(true, "unsupported expression"),
} }
} }
......
...@@ -2440,11 +2440,12 @@ ...@@ -2440,11 +2440,12 @@
), ),
args: [ args: [
Value( Value(
Unknown { Variable(
original_value: None, (
reason: "unsupported expression", "moduleId",
has_side_effects: true, #6,
}, ),
),
), ),
], ],
ast_path: [ ast_path: [
......
*arrow function 1213* = (...) => __webpack_require__(???*0*) *arrow function 1213* = (...) => __webpack_require__(moduleId)
- *0* unsupported expression
⚠️ This value might have side effects
*arrow function 131* = (...) => undefined *arrow function 131* = (...) => undefined
......
...@@ -13,11 +13,12 @@ ...@@ -13,11 +13,12 @@
), ),
), ),
[ [
Unknown { Variable(
original_value: None, (
reason: "unsupported expression", "moduleId",
has_side_effects: true, #6,
}, ),
),
], ],
), ),
), ),
......
...@@ -42,11 +42,9 @@ ...@@ -42,11 +42,9 @@
0 -> 19 member call = (module<../../webpack-api-runtime.js, {}> | undefined)["C"](({} | undefined)) 0 -> 19 member call = (module<../../webpack-api-runtime.js, {}> | undefined)["C"](({} | undefined))
0 -> 21 call = (module<../../webpack-api-runtime.js, {}> | undefined)(???*0*) 0 -> 21 call = (module<../../webpack-api-runtime.js, {}> | undefined)(???*0*)
- *0* unsupported expression - *0* arguments[0]
⚠️ This value might have side effects ⚠️ function calls are not analysed yet
0 -> 22 call = ((...) => __webpack_require__(???*0*) | undefined)(5166) 0 -> 22 call = ((...) => __webpack_require__(moduleId) | undefined)(5166)
- *0* unsupported expression
⚠️ This value might have side effects
0 -> 24 free var = FreeVar(module) 0 -> 24 free var = FreeVar(module)
*arrow function 1213* = (...) => __webpack_require__(???*0*) *arrow function 1213* = (...) => __webpack_require__(moduleId)
- *0* unsupported expression
⚠️ This value might have side effects
*arrow function 131* = (...) => undefined *arrow function 131* = (...) => undefined
...@@ -10,15 +8,11 @@ __unused_webpack_module = ???*0* ...@@ -10,15 +8,11 @@ __unused_webpack_module = ???*0*
- *0* arguments[0] - *0* arguments[0]
⚠️ function calls are not analysed yet ⚠️ function calls are not analysed yet
__webpack_exec__ = ((...) => __webpack_require__(???*0*) | undefined) __webpack_exec__ = ((...) => __webpack_require__(moduleId) | undefined)
- *0* unsupported expression
⚠️ This value might have side effects
__webpack_exports__#3 = (???*0* | undefined) __webpack_exports__#3 = (???*0* | undefined)
- *0* ((...) => __webpack_require__(???*1*) | undefined)(5166) - *0* ((...) => __webpack_require__(moduleId) | undefined)(5166)
⚠️ non-function callee ⚠️ non-function callee
- *1* unsupported expression
⚠️ This value might have side effects
__webpack_exports__#4 = ???*0* __webpack_exports__#4 = ???*0*
- *0* arguments[1] - *0* arguments[1]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment