1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-22 15:06:54 -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:
Ryan Dahl 2021-03-15 13:56:31 -04:00 committed by GitHub
parent 0ae079fe50
commit 2ff9b01551
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 0 additions and 18 deletions

View file

@ -314,7 +314,6 @@ impl Inner {
"noEmit": true,
"strict": true,
"target": "esnext",
"useDefineForClassFields": true,
}));
let (maybe_config, maybe_root_uri) = {
let config = &self.config;

View file

@ -809,7 +809,6 @@ impl Graph {
"strict": true,
"target": "esnext",
"tsBuildInfoFile": "deno:///.tsbuildinfo",
"useDefineForClassFields": true,
}));
if options.emit {
config.merge(&json!({
@ -955,7 +954,6 @@ impl Graph {
"module": "esnext",
"strict": true,
"target": "esnext",
"useDefineForClassFields": true,
}));
let opts = match options.bundle_type {
BundleType::Esm | BundleType::Iife => json!({

View file

@ -1,4 +0,0 @@
class A {
b = this.a;
constructor(public a: unknown) {}
}

View file

@ -1,4 +0,0 @@
[WILDCARD]error: TS2729 [ERROR]: Property 'a' is used before its initialization.
b = this.a;
^
[WILDCARD]

View file

@ -2841,12 +2841,6 @@ console.log("finish");
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 {
args: "run --quiet --reload js_import_detect.ts",
output: "js_import_detect.ts.out",

View file

@ -130,7 +130,6 @@ pub const IGNORED_RUNTIME_COMPILER_OPTIONS: &[&str] = &[
"traceResolution",
"tsBuildInfoFile",
"typeRoots",
"useDefineForClassFields",
"version",
"watch",
];