Remap source maps in JS DCE. Improve JS DCE error logging
See KT-19821
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
$TESTDATA_DIR$/parseError.js
|
||||
-output-dir
|
||||
$TEMP_DIR$/min
|
||||
+1
@@ -0,0 +1 @@
|
||||
..
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
error: at compiler/testData/cli/js-dce/parseError.js (1, 1): syntax error
|
||||
COMPILATION_ERROR
|
||||
@@ -0,0 +1 @@
|
||||
// ABSENT: min/parseError.js
|
||||
@@ -0,0 +1,3 @@
|
||||
$TESTDATA_DIR$/withSourceMap.js
|
||||
-output-dir
|
||||
$TEMP_DIR$/min
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
if (typeof kotlin === 'undefined') {
|
||||
throw new Error("Error loading module 'sample'. Its dependency 'kotlin' was not found. Please, check whether 'kotlin' is loaded prior to 'sample'.");
|
||||
}
|
||||
var sample = function (_, Kotlin) {
|
||||
'use strict';
|
||||
var println = Kotlin.kotlin.io.println_s8jyv4$;
|
||||
function foo() {
|
||||
println('foo');
|
||||
}
|
||||
function bar() {
|
||||
println('bar');
|
||||
}
|
||||
function main(args) {
|
||||
foo();
|
||||
}
|
||||
_.foo = foo;
|
||||
_.bar = bar;
|
||||
_.main_kand9s$ = main;
|
||||
main([]);
|
||||
Kotlin.defineModule('sample', _);
|
||||
return _;
|
||||
}(typeof sample === 'undefined' ? {} : sample, kotlin);
|
||||
|
||||
//# sourceMappingURL=sample.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"sample.js","sources":["sample.kt"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;IACI,QAAQ,KAAR,C;EACJ,C;;IAGI,QAAQ,KAAR,C;EACJ,C;;IAGI,K;EACJ,C;;;;;;;;"}
|
||||
@@ -0,0 +1 @@
|
||||
OK
|
||||
@@ -0,0 +1,2 @@
|
||||
// EXISTS: min/withSourceMap.js
|
||||
// EXISTS: min/withSourceMap.js.map
|
||||
Reference in New Issue
Block a user