diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-05-02 00:32:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-02 00:32:05 +0200 |
commit | de2c042482741dc23f7d975458a1fba95863de53 (patch) | |
tree | d9cb99d069a450ce708952b980ae15857b86a5d9 /cli/ops/compiler.rs | |
parent | 96fd0f4692126516239d61784caf6599aa884844 (diff) |
BREAKING: remove support for JSON imports (#5037)
This commit removes support for importing JSON files as modules.
This change is dictated by security; browsers rolled back on this
support as well.
Diffstat (limited to 'cli/ops/compiler.rs')
-rw-r--r-- | cli/ops/compiler.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/cli/ops/compiler.rs b/cli/ops/compiler.rs index 32e6655f9..1029070a8 100644 --- a/cli/ops/compiler.rs +++ b/cli/ops/compiler.rs @@ -149,14 +149,6 @@ fn op_fetch_source_files( .map_err(|e| OpError::other(e.to_string()))? .code } - msg::MediaType::Json => { - global_state - .json_compiler - .compile(&file) - .await - .map_err(|e| OpError::other(e.to_string()))? - .code - } _ => String::from_utf8(file.source_code) .map_err(|_| OpError::invalid_utf8())?, }; |