mirror of
https://github.com/denoland/deno.git
synced 2024-11-25 15:29:32 -05:00
Revert "fix(cli/module_graph): Set useDefineForClassFields to true" (#9792)
Backwards incompatible change cannot be made in-between patch releases.
This commit broke std tests https://github.com/denoland/deno_std/runs/2112369372
This reverts commit c4709834b3
.
This commit is contained in:
parent
0ae079fe50
commit
2ff9b01551
6 changed files with 0 additions and 18 deletions
|
@ -314,7 +314,6 @@ impl Inner {
|
||||||
"noEmit": true,
|
"noEmit": true,
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"target": "esnext",
|
"target": "esnext",
|
||||||
"useDefineForClassFields": true,
|
|
||||||
}));
|
}));
|
||||||
let (maybe_config, maybe_root_uri) = {
|
let (maybe_config, maybe_root_uri) = {
|
||||||
let config = &self.config;
|
let config = &self.config;
|
||||||
|
|
|
@ -809,7 +809,6 @@ impl Graph {
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"target": "esnext",
|
"target": "esnext",
|
||||||
"tsBuildInfoFile": "deno:///.tsbuildinfo",
|
"tsBuildInfoFile": "deno:///.tsbuildinfo",
|
||||||
"useDefineForClassFields": true,
|
|
||||||
}));
|
}));
|
||||||
if options.emit {
|
if options.emit {
|
||||||
config.merge(&json!({
|
config.merge(&json!({
|
||||||
|
@ -955,7 +954,6 @@ impl Graph {
|
||||||
"module": "esnext",
|
"module": "esnext",
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"target": "esnext",
|
"target": "esnext",
|
||||||
"useDefineForClassFields": true,
|
|
||||||
}));
|
}));
|
||||||
let opts = match options.bundle_type {
|
let opts = match options.bundle_type {
|
||||||
BundleType::Esm | BundleType::Iife => json!({
|
BundleType::Esm | BundleType::Iife => json!({
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
class A {
|
|
||||||
b = this.a;
|
|
||||||
constructor(public a: unknown) {}
|
|
||||||
}
|
|
|
@ -1,4 +0,0 @@
|
||||||
[WILDCARD]error: TS2729 [ERROR]: Property 'a' is used before its initialization.
|
|
||||||
b = this.a;
|
|
||||||
^
|
|
||||||
[WILDCARD]
|
|
|
@ -2841,12 +2841,6 @@ console.log("finish");
|
||||||
output: "087_no_check_imports_not_used_as_values.ts.out",
|
output: "087_no_check_imports_not_used_as_values.ts.out",
|
||||||
});
|
});
|
||||||
|
|
||||||
itest!(_088_use_define_for_class_fields {
|
|
||||||
args: "run 088_use_define_for_class_fields.ts",
|
|
||||||
output: "088_use_define_for_class_fields.ts.out",
|
|
||||||
exit_code: 1,
|
|
||||||
});
|
|
||||||
|
|
||||||
itest!(js_import_detect {
|
itest!(js_import_detect {
|
||||||
args: "run --quiet --reload js_import_detect.ts",
|
args: "run --quiet --reload js_import_detect.ts",
|
||||||
output: "js_import_detect.ts.out",
|
output: "js_import_detect.ts.out",
|
||||||
|
|
|
@ -130,7 +130,6 @@ pub const IGNORED_RUNTIME_COMPILER_OPTIONS: &[&str] = &[
|
||||||
"traceResolution",
|
"traceResolution",
|
||||||
"tsBuildInfoFile",
|
"tsBuildInfoFile",
|
||||||
"typeRoots",
|
"typeRoots",
|
||||||
"useDefineForClassFields",
|
|
||||||
"version",
|
"version",
|
||||||
"watch",
|
"watch",
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue